[vlc-devel] commit: Win: use var_Inherit ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 17 21:08:58 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 17 22:08:46 2010 +0200| [57fc7b4e8b328c9761bee17eaac163e0adfdcfa7] | committer: Rémi Denis-Courmont 

Win: use var_Inherit

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=57fc7b4e8b328c9761bee17eaac163e0adfdcfa7
---

 src/win32/specific.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/win32/specific.c b/src/win32/specific.c
index ea8a504..c896be5 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++ )
                 {




More information about the vlc-devel mailing list