From: RĂ©mi Denis-Courmont Date: Sat, 23 Jan 2010 13:36:50 +0000 (+0200) Subject: ncurses: always use vcd X-Git-Tag: 1.1.0-ff~1031 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=35192dd7729d4c3aae4c2ff28e8a823f95f02705;p=vlc ncurses: always use vcd This is consistent with Qt4 behaviour. This also fixes a bug when using the configuration; the item is called "vcd", not "vcd://". --- diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c index e0f12087ea..d1cdba433d 100644 --- a/modules/gui/ncurses.c +++ b/modules/gui/ncurses.c @@ -67,12 +67,6 @@ # include #endif -#ifdef HAVE_VCDX -#define VCD_MRL "vcdx://" -#else -#define VCD_MRL "vcd://" -#endif - #define SEARCH_CHAIN_SIZE 20 #define OPEN_CHAIN_SIZE 50 @@ -2405,17 +2399,17 @@ static void Eject( intf_thread_t *p_intf ) break; } } - else if( !strncmp(psz_name, VCD_MRL, strlen(VCD_MRL)) ) + else if( !strncmp(psz_name, "vcd://", 6) ) { - switch( psz_name[strlen(VCD_MRL)] ) + switch( psz_name[6] ) { case '\0': case '@': - psz_device = config_GetPsz( p_intf, VCD_MRL ); + psz_device = config_GetPsz( p_intf, "vcd" ); break; default: /* Omit the beginning MRL-selector characters */ - psz_device = strdup( psz_name + strlen(VCD_MRL) ); + psz_device = strdup( psz_name + 6 ); break; } }