Commit 03beb7e6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not reload the command line

Loading the configuration from vlcrc or resetting the configuration does
not alter the command line parameter anymore.
parent 220ce67b
......@@ -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 );
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment