]> git.sesse.net Git - vlc/commitdiff
modules: do not autosave configfile when --ignore-config is specified
authorJean-Paul Saman <jpsaman@videolan.org>
Thu, 21 May 2009 12:55:38 +0000 (14:55 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 24 May 2009 14:54:45 +0000 (16:54 +0200)
src/modules/modules.c

index 7c1290823bf5e9abcd2b5074ed440b613f942cc8..c69cf70d01c96beb796cb7aa70fe7ce110ad5e82 100644 (file)
@@ -172,7 +172,8 @@ void module_EndBank( vlc_object_t *p_this, bool b_plugins )
     assert (p_bank != NULL);
 
     /* Save the configuration */
-    config_AutoSaveConfigFile( p_this );
+    if( !config_GetInt( p_this, "ignore-config" ) )
+        config_AutoSaveConfigFile( p_this );
 
     /* If plugins were _not_ loaded, then the caller still has the bank lock
      * from module_InitBank(). */