i_ret = VLC_EEXITSUCCESS;
}
- /* Check for config file options */
- if( !var_InheritBool( p_libvlc, "ignore-config" ) )
- {
- if( var_InheritBool( p_libvlc, "reset-config" ) )
- {
- config_ResetAll( p_libvlc );
- config_SaveConfigFile( p_libvlc );
- }
- }
-
if( module_count <= 1 )
{
msg_Err( p_libvlc, "No plugins found! Check your VLC installation.");
* Override default configuration with config file settings
*/
if( !var_InheritBool( p_libvlc, "ignore-config" ) )
- config_LoadConfigFile( p_libvlc );
+ {
+ if( var_InheritBool( p_libvlc, "reset-config" ) )
+ {
+ config_ResetAll( p_libvlc );
+ config_SaveConfigFile( p_libvlc );
+ }
+ else
+ config_LoadConfigFile( p_libvlc );
+ }
/*
* Override configuration with command line settings
priv->p_memcpy_module = NULL;
}
+ /* Save the configuration */
+ if( !var_InheritBool( p_libvlc, "ignore-config" ) )
+ config_AutoSaveConfigFile( VLC_OBJECT(p_libvlc) );
+
/* Free module bank. It is refcounted, so we call this each time */
module_EndBank( p_libvlc, true );
assert (p_bank != NULL);
- /* Save the configuration */
- if( !var_InheritBool( p_this, "ignore-config" ) )
- config_AutoSaveConfigFile( p_this );
-
/* If plugins were _not_ loaded, then the caller still has the bank lock
* from module_InitBank(). */
if( b_plugins )