]> git.sesse.net Git - vlc/commitdiff
Win: use var_Inherit
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 17 Jan 2010 20:08:46 +0000 (22:08 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 17 Jan 2010 20:08:46 +0000 (22:08 +0200)
src/win32/specific.c

index ea8a504fe8bcec7bbab97ac93daf9c4ada1fd324..c896be5ab11daa0f22b5a15c6432203d9a85c8ce 100644 (file)
@@ -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++ )
                 {