Commit f3afc9d7 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: fix run_as_daemon when HAVE_TERMIOS_H is false

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d6c231ba
...@@ -564,9 +564,6 @@ static int read_key(void) ...@@ -564,9 +564,6 @@ static int read_key(void)
struct timeval tv; struct timeval tv;
fd_set rfds; fd_set rfds;
if(run_as_daemon)
return -1;
FD_ZERO(&rfds); FD_ZERO(&rfds);
FD_SET(0, &rfds); FD_SET(0, &rfds);
tv.tv_sec = 0; tv.tv_sec = 0;
...@@ -2452,7 +2449,7 @@ static int transcode(OutputFile *output_files, int nb_output_files, ...@@ -2452,7 +2449,7 @@ static int transcode(OutputFile *output_files, int nb_output_files,
if (received_nb_signals) if (received_nb_signals)
break; break;
/* read_key() returns 0 on EOF */ /* read_key() returns 0 on EOF */
key = read_key(); key = run_as_daemon ? -1 : read_key();
if (key == 'q') if (key == 'q')
break; break;
if (key == '+') av_log_set_level(av_log_get_level()+10); if (key == '+') av_log_set_level(av_log_get_level()+10);
......
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