diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2016-09-08 03:16:27 +0300 |
---|---|---|
committer | Rodger Combs <rodger.combs@gmail.com> | 2016-10-07 02:31:06 +0300 |
commit | 1f7d5860525ad9b7540502ce01b2f239eada8e87 (patch) | |
tree | 24e37f9801eadbd5f540927107ab80a53f7c826f /ffmpeg.c | |
parent | 711bfb33df4efa252a85d2d6987c435d0eef1a48 (diff) |
ffmpeg: don't reconfigure terminal if we're not taking input from stdin
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) |