Browse Source

ffmpeg: avoid a confusing and easy to break if().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 93147daf59)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11.1
Reimar Döffinger Michael Niedermayer 13 years ago
parent
commit
565581b0a4
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      ffmpeg.c

+ 3
- 2
ffmpeg.c View File

@@ -1456,10 +1456,11 @@ static void term_init(void)
#if HAVE_TERMIOS_H
if(!run_as_daemon){
struct termios tty;
int istty = 1;
#if HAVE_ISATTY
if(isatty(0) && isatty(2))
istty = isatty(0) && isatty(2);
#endif
if (tcgetattr (0, &tty) == 0) {
if (istty && tcgetattr (0, &tty) == 0) {
oldtty = tty;
restore_tty = 1;
atexit(term_exit);


Loading…
Cancel
Save