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

Måns Rullgård mans
Mon Mar 7 13:15:18 CET 2011


Takis Issaris <t4k1s at yahoo.com> writes:

> Hi,
>
> The attached patch adds an ffmpeg commandline option to allow one to disable 
> ffmpeg using tcgetattr and tcsetattr to modify terminal parameters.
>
> The issue I am having is the following:
> 1. I start one instance of ffmpeg (process A).
> 2. Process A stores the current attributes, which it would restore at the end of 
> its execution.
> 3. Process A modifes the terminals parameters.
> 4. I start a second instance of ffmpeg (process B) on the same terminal, which 
> also stores the already modified attributes, which it would also restore at the 
> end of its execution.
> 5. Process A ends and correctly restores the terminals attributes.
> 6. Process B ends and restores the terminals attributes which had already been 
> modified by process A.
>
> In the end, the attributes do not get restored correctly, forcing me to use 
> "reset" or "stty sane".

I find the messing with terminal settings highly annoying in general.  I
suggest we remove it entirely and use only ctrl-c to interrupt, at least
on systems where signals work properly.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list