From 9293845116a263a25fe1b7823add056d91b41bb0 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sun, 6 Jun 2004 21:18:59 +0000 Subject: [PATCH] * access2: added shortcuts for vcd/svcd. --- modules/access/access2.c | 2 ++ modules/access/cdda.c | 2 +- modules/access/vcd/vcd.c | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/access/access2.c b/modules/access/access2.c index 58d4c69f24..5daf70f9a7 100644 --- a/modules/access/access2.c +++ b/modules/access/access2.c @@ -67,6 +67,8 @@ vlc_module_begin(); add_shortcut( "vcd" ); add_shortcut( "svcd" ); + + add_shortcut( "v4l" ); vlc_module_end(); /***************************************************************************** diff --git a/modules/access/cdda.c b/modules/access/cdda.c index 2849d12c39..9c496b695c 100644 --- a/modules/access/cdda.c +++ b/modules/access/cdda.c @@ -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; diff --git a/modules/access/vcd/vcd.c b/modules/access/vcd/vcd.c index c01a146d8b..f78b4a44f1 100644 --- a/modules/access/vcd/vcd.c +++ b/modules/access/vcd/vcd.c @@ -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" ); -- 2.39.5