]> git.sesse.net Git - vlc/commitdiff
Only test the terminal if --fb-tty is used.
authorJean-Paul Saman <jpsaman@videolan.org>
Thu, 6 Dec 2007 11:40:22 +0000 (11:40 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Thu, 6 Dec 2007 11:40:22 +0000 (11:40 +0000)
modules/video_output/fb.c

index 5c62e0e49066faa103264121eefdbaf03bb5e5c9..943f5507e9d55962e90bef6bc2d60fea67311b77 100644 (file)
@@ -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;