]> git.sesse.net Git - vlc/blobdiff - modules/access/cdda.c
dvdnav: don't decode_URI for psz_file
[vlc] / modules / access / cdda.c
index 508a7ba7cd79d3ea36460061a0531758120a7175..35864476abc37231447dd8c87227c19a721c3594 100644 (file)
@@ -90,8 +90,7 @@ vlc_module_begin ()
             N_( "CDDB Server port to use." ), true )
 #endif
 
-    add_shortcut( "cdda" )
-    add_shortcut( "cddasimple" )
+    add_shortcut( "cdda", "cddasimple" )
 vlc_module_end ()
 
 
@@ -493,7 +492,7 @@ static int GetTracks( access_t *p_access, input_item_t *p_current )
         msg_Dbg( p_access, "track[%d] start=%d", i, p_sys->p_sectors[i] );
 
         /* */
-        if( asprintf( &psz_uri, "cdda://%s", p_access->psz_path ) == -1 )
+        if( asprintf( &psz_uri, "cdda://%s", p_access->psz_location ) == -1 )
             psz_uri = NULL;
         if( asprintf( &psz_opt, "cdda-track=%i", i+1 ) == -1 )
             psz_opt = NULL;