[FFmpeg-cvslog] ffmpeg: modify tty state when stderr is redirected
Ganesh Ajjanagadde
git at videolan.org
Thu Jul 30 14:43:32 CEST 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Mon Jul 27 09:56:25 2015 -0400| [92e62f49cf7440a9e8998d284528e223c0948c97] | committer: Michael Niedermayer
ffmpeg: modify tty state when stderr is redirected
This fixes Ticket2964
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92e62f49cf7440a9e8998d284528e223c0948c97
---
ffmpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 5575e2f..eb3f613 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;
More information about the ffmpeg-cvslog
mailing list