]> git.sesse.net Git - vlc/commitdiff
Do not reload the command line
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 18:27:37 +0000 (20:27 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 18:27:37 +0000 (20:27 +0200)
Loading the configuration from vlcrc or resetting the configuration does
not alter the command line parameter anymore.

src/libvlc.c

index 536229c8b05a826ccf25b196095c7e500bd184da..c677df92959fcf1acb8b1e6b7c35fbdd603d6158 100644 (file)
@@ -429,7 +429,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
 # if defined (WIN32) || defined (__APPLE__)
     if( !var_InheritBool( p_libvlc, "ignore-config" ) )
         config_LoadConfigFile( p_libvlc, "main" );
-    config_LoadCmdLine( p_libvlc, &i_argc, ppsz_argv, true );
     priv->i_verbose = var_InheritInteger( p_libvlc, "verbose" );
 
     /* Check if the user specified a custom language */
@@ -509,7 +508,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
         if( var_InheritBool( p_libvlc, "reset-config" ) )
         {
             config_ResetAll( p_libvlc );
-            config_LoadCmdLine( p_libvlc, &i_argc, ppsz_argv, true );
             config_SaveConfigFile( p_libvlc, NULL );
         }
     }