From 57fc7b4e8b328c9761bee17eaac163e0adfdcfa7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 17 Jan 2010 22:08:46 +0200 Subject: [PATCH] Win: use var_Inherit --- src/win32/specific.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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++ ) { -- 2.39.2