summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-07-27 09:56:25 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-30 14:31:26 +0200
commit92e62f49cf7440a9e8998d284528e223c0948c97 (patch)
tree6b6d710183a6e9ff1bca6d81a0bb57f895b7259a /ffmpeg.c
parent1919827f2c2bdf55264e3ed52cacf12b1289789f (diff)
ffmpeg: modify tty state when stderr is redirected
This fixes Ticket2964 Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 5575e2f9a4..eb3f613400 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;