]> git.sesse.net Git - vlc/blobdiff - modules/access/cdda.c
access/access_demux: check psz_access rather than b_force
[vlc] / modules / access / cdda.c
index 75b8cc0d2f32d4645958ff84f4873ad1f42cfc40..6dface0daa05b8b837f749e55ab34210ea1158c6 100644 (file)
@@ -142,7 +142,8 @@ static int Open( vlc_object_t *p_this )
     if( !p_access->psz_path || !*p_access->psz_path )
     {
         /* Only when selected */
-        if( !p_this->b_force ) return VLC_EGENERIC;
+        if( !p_access->psz_access || !*p_access->psz_access )
+            return VLC_EGENERIC;
 
         psz_name = var_CreateGetString( p_this, "cd-audio" );
         if( !psz_name || !*psz_name )