Commit bf798aed authored by Jean-Paul Saman's avatar Jean-Paul Saman

Only test the terminal if --fb-tty is used.

parent 352de5a3
......@@ -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;
......
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