]> git.sesse.net Git - vlc/blobdiff - modules/access/dvdnav.c
demux: provide both URL and file path as with access
[vlc] / modules / access / dvdnav.c
index 91fffcd10be7b3aa0ae8cc973becd7e201500f50..4175e89ab36761e98a79bff32fd685498a5a932e 100644 (file)
@@ -189,7 +189,7 @@ static int Open( vlc_object_t *p_this )
     char        *psz_name;
     char        *psz_code;
 
-    if( !p_demux->psz_path || !*p_demux->psz_path )
+    if( !p_demux->psz_file || !*p_demux->psz_file )
     {
         /* Only when selected */
         if( !p_demux->psz_access || !*p_demux->psz_access )
@@ -202,7 +202,7 @@ static int Open( vlc_object_t *p_this )
         }
     }
     else
-        psz_name = ToLocaleDup( p_demux->psz_path );
+        psz_name = ToLocaleDup( p_demux->psz_file );
 
 #ifdef WIN32
     /* Remove trailing backslash, otherwise dvdnav_open will fail */