From 1f7d5860525ad9b7540502ce01b2f239eada8e87 Mon Sep 17 00:00:00 2001 From: Rodger Combs Date: Wed, 7 Sep 2016 19:16:27 -0500 Subject: ffmpeg: don't reconfigure terminal if we're not taking input from stdin --- ffmpeg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index ee5a768..44371f0 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -366,7 +366,7 @@ static BOOL WINAPI CtrlHandler(DWORD fdwCtrlType) void term_init(void) { #if HAVE_TERMIOS_H - if(!run_as_daemon){ + if (!run_as_daemon && stdin_interaction) { struct termios tty; if (tcgetattr (0, &tty) == 0) { oldtty = tty; @@ -4493,8 +4493,6 @@ int main(int argc, char **argv) show_banner(argc, argv, options); - term_init(); - /* parse options and open all input/output files */ ret = ffmpeg_parse_options(argc, argv); if (ret < 0) -- cgit v1.1