[FFmpeg-devel] [PATCH] Add option to disable termios.h usage

Nicolas George nicolas.george
Thu Mar 10 17:09:43 CET 2011


Le decadi 20 vent?se, an CCXIX, Takis Issaris a ?crit?:
> Why would this work? tcsetattr is invoked regardless of where stdin comes
> from.

As M?ns said, tcsetattr will be called on /dev/null and fail with no effects.

> Hmm, I do not really like that solution, if I understand correctly, it makes 
> sure the shell fixes the terminal settings after an application exits? It
> seems better to me to not mess the terminal up in the first place, instead
> of relying on a specific shell's feature to fix it.

Do both: use this feature to avoid being annoyed by bogus applications and
fix your own application.

But I do not think that ffmpeg needs to be fixed: starting ffmpeg in the
background without redirecting its input is wrong in the first place, since
it uses it.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110310/ce13eccb/attachment.pgp>



More information about the ffmpeg-devel mailing list