[vlc-devel] commit: dvdnav: don't probe stdin (this just removes a silly error message) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Mar 15 18:46:20 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 15 19:45:06 2009 +0200| [1977472264277e9c5cf353482349a3a5ca3697f6] | committer: Rémi Denis-Courmont 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1977472264277e9c5cf353482349a3a5ca3697f6
---

 modules/access/dvdnav.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 1df2516..580bb40 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 */




More information about the vlc-devel mailing list