Commit 19774722 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

dvdnav: don't probe stdin (this just removes a silly error message)

parent c49da8a2
...@@ -1459,6 +1459,9 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name ) ...@@ -1459,6 +1459,9 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
return VLC_SUCCESS; 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 ) if( (i_fd = utf8_open( psz_name, O_RDONLY |O_NONBLOCK, 0666 )) == -1 )
{ {
return VLC_SUCCESS; /* Let dvdnav_open() do the probing */ return VLC_SUCCESS; /* Let dvdnav_open() do the probing */
......
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