From: RĂ©mi Denis-Courmont Date: Sun, 17 Jan 2010 20:08:46 +0000 (+0200) Subject: Win: use var_Inherit X-Git-Tag: 1.1.0-ff~1138 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=57fc7b4e8b328c9761bee17eaac163e0adfdcfa7;p=vlc Win: use var_Inherit --- diff --git a/src/win32/specific.c b/src/win32/specific.c index ea8a504fe8..c896be5ab1 100644 --- a/src/win32/specific.c +++ b/src/win32/specific.c @@ -140,7 +140,7 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv #ifndef ABOVE_NORMAL_PRIORITY_CLASS # define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000 #endif - if( config_GetInt( p_this, "high-priority" ) ) + if( var_InheritBool( p_this, "high-priority" ) ) { if( SetPriorityClass( GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS ) || SetPriorityClass( GetCurrentProcess(), HIGH_PRIORITY_CLASS ) ) @@ -153,9 +153,9 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv } } - if( config_GetInt( p_this, "one-instance" ) - || ( config_GetInt( p_this, "one-instance-when-started-from-file" ) - && config_GetInt( p_this, "started-from-file" ) ) ) + if( varInheritBool( p_this, "one-instance" ) + || ( var_InheritBool( p_this, "one-instance-when-started-from-file" ) + && var_InheritBool( p_this, "started-from-file" ) ) ) { HANDLE hmutex; @@ -235,7 +235,7 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv p_data = malloc( i_data ); p_data->argc = *pi_argc - optind; - p_data->enqueue = config_GetInt( p_this, "playlist-enqueue" ); + p_data->enqueue = var_InheritBool( p_this, "playlist-enqueue" ); i_data = 0; for( i_opt = optind; i_opt < *pi_argc; i_opt++ ) {