]> git.sesse.net Git - vlc/commitdiff
* access2: added shortcuts for vcd/svcd.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 6 Jun 2004 21:18:59 +0000 (21:18 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 6 Jun 2004 21:18:59 +0000 (21:18 +0000)
modules/access/access2.c
modules/access/cdda.c
modules/access/vcd/vcd.c

index 58d4c69f2421d90b4429d74dc39b90dc8cef0931..5daf70f9a7fe5c7eeb4f248b15eeddf9f9589d36 100644 (file)
@@ -67,6 +67,8 @@ vlc_module_begin();
 
     add_shortcut( "vcd" );
     add_shortcut( "svcd" );
+
+    add_shortcut( "v4l" );
 vlc_module_end();
 
 /*****************************************************************************
index 2849d12c39f71179fe10224b8f4f0d13ff5b2b06..9c496b695ce89b19a56a75e0206caf13e674b511 100644 (file)
@@ -112,7 +112,7 @@ static int Open( vlc_object_t *p_this )
         free( psz_dup );
 
         /* Only when selected */
-        if( *p_access->psz_access == '\0' )
+        if( strcmp( p_access->psz_access, "cdda" ) )
             return VLC_EGENERIC;
 
 
index c01a146d8bf0675f26a054878e16afe6b0ca624f..f78b4a44f1a067d4e5962158efc278b562fd7baf 100644 (file)
@@ -110,7 +110,8 @@ static int Open( vlc_object_t *p_this )
         free( psz_dup );
 
         /* 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;
 
         psz_dup = var_CreateGetString( p_access, "vcd" );