Commit 5c939db2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

access/access_demux: check psz_access rather than b_force

parent 20431e3b
......@@ -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 )
......
......@@ -183,7 +183,8 @@ static int Open( vlc_object_t *p_this )
if( !p_demux->psz_path || !*p_demux->psz_path )
{
/* Only when selected */
if( !p_this->b_force ) return VLC_EGENERIC;
if( !p_demux->psz_access || !*p_demux->psz_access )
return VLC_EGENERIC;
psz_name = var_CreateGetString( p_this, "dvd" );
if( !psz_name )
......
......@@ -204,7 +204,8 @@ static int Open( vlc_object_t *p_this )
if( !p_demux->psz_path || !*p_demux->psz_path )
{
/* Only when selected */
if( !p_this->b_force ) return VLC_EGENERIC;
if( !p_demux->psz_access || !*p_demux->psz_access )
return VLC_EGENERIC;
psz_name = var_CreateGetString( p_this, "dvd" );
if( !psz_name )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment