Commit 92938451 authored by Laurent Aimar's avatar Laurent Aimar

* access2: added shortcuts for vcd/svcd.

parent 41625283
...@@ -67,6 +67,8 @@ vlc_module_begin(); ...@@ -67,6 +67,8 @@ vlc_module_begin();
add_shortcut( "vcd" ); add_shortcut( "vcd" );
add_shortcut( "svcd" ); add_shortcut( "svcd" );
add_shortcut( "v4l" );
vlc_module_end(); vlc_module_end();
/***************************************************************************** /*****************************************************************************
......
...@@ -112,7 +112,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -112,7 +112,7 @@ static int Open( vlc_object_t *p_this )
free( psz_dup ); free( psz_dup );
/* Only when selected */ /* Only when selected */
if( *p_access->psz_access == '\0' ) if( strcmp( p_access->psz_access, "cdda" ) )
return VLC_EGENERIC; return VLC_EGENERIC;
......
...@@ -110,7 +110,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -110,7 +110,8 @@ static int Open( vlc_object_t *p_this )
free( psz_dup ); free( psz_dup );
/* Only when selected */ /* Only when selected */
if( *p_access->psz_access == '\0' ) if( strcmp( p_access->psz_access, "vcd" ) &&
strcmp( p_access->psz_access, "svcd" ) )
return VLC_EGENERIC; return VLC_EGENERIC;
psz_dup = var_CreateGetString( p_access, "vcd" ); psz_dup = var_CreateGetString( p_access, "vcd" );
......
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