From: RĂ©mi Denis-Courmont Date: Sun, 15 Mar 2009 17:45:06 +0000 (+0200) Subject: dvdnav: don't probe stdin (this just removes a silly error message) X-Git-Tag: 1.0.0-pre1~78 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1977472264277e9c5cf353482349a3a5ca3697f6;p=vlc dvdnav: don't probe stdin (this just removes a silly error message) --- diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c index 1df25169e1..580bb40b50 100644 --- a/modules/access/dvdnav.c +++ b/modules/access/dvdnav.c @@ -1459,6 +1459,9 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name ) return VLC_SUCCESS; } + if( !strcmp( psz_name, "-" ) ) /* stdin -> file access */ + return VLC_EGENERIC; + if( (i_fd = utf8_open( psz_name, O_RDONLY |O_NONBLOCK, 0666 )) == -1 ) { return VLC_SUCCESS; /* Let dvdnav_open() do the probing */