]> git.sesse.net Git - vlc/commitdiff
* modules/access/dvdnav.c: When no path is specified, use libdvdcss
authorChristophe Massiot <massiot@videolan.org>
Tue, 30 Aug 2005 17:06:25 +0000 (17:06 +0000)
committerChristophe Massiot <massiot@videolan.org>
Tue, 30 Aug 2005 17:06:25 +0000 (17:06 +0000)
   autodetection.

modules/access/dvdnav.c

index 17d668e8e5f17f0d8de43689145399f3c04a7ae4..d2d11f512ca1e8839ae19a39bbffc047f8f04f8a 100644 (file)
@@ -1368,6 +1368,12 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
     uint16_t i_tag_id = 0;
     int i_fd, i_ret;
 
+    if( !*psz_name )
+    {
+        /* Triggers libdvdcss autodetection */
+        return VLC_SUCCESS;
+    }
+
     if( stat( psz_name, &stat_info ) || !S_ISREG( stat_info.st_mode ) )
     {
         /* Let dvdnav_open() do the probing */