Commit 92e62f49 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Michael Niedermayer

ffmpeg: modify tty state when stderr is redirected

This fixes Ticket2964
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 1919827f
......@@ -372,7 +372,7 @@ void term_init(void)
struct termios tty;
int istty = 1;
#if HAVE_ISATTY
istty = isatty(0) && isatty(2);
istty = isatty(0);
#endif
if (istty && tcgetattr (0, &tty) == 0) {
oldtty = tty;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment