From: Jean-Paul Saman Date: Thu, 6 Dec 2007 11:40:22 +0000 (+0000) Subject: Only test the terminal if --fb-tty is used. X-Git-Tag: 0.9.0-test0~4254 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=bf798aedd42b52a7e0c3072f5843fe9d6b6e3b9e;p=vlc Only test the terminal if --fb-tty is used. --- diff --git a/modules/video_output/fb.c b/modules/video_output/fb.c index 5c62e0e490..943f5507e9 100644 --- a/modules/video_output/fb.c +++ b/modules/video_output/fb.c @@ -180,7 +180,7 @@ static int Create( vlc_object_t *p_this ) #ifndef WIN32 #if defined(HAVE_ISATTY) /* Check that stdin is a TTY */ - if( !p_sys->b_tty && !isatty( 0 ) ) + if( p_sys->b_tty && !isatty( 0 ) ) { msg_Warn( p_vout, "fd 0 is not a TTY" ); return VLC_EGENERIC;