[vlc-devel] commit: modules: do not autosave configfile when --ignore-config is specified ( Jean-Paul Saman )

git version control git at videolan.org
Tue May 26 01:21:02 CEST 2009


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Thu May 21 14:55:38 2009 +0200| [ac72368d42036b8e41689dda8e07037de3b9cc54] | committer: Jean-Paul Saman 

modules: do not autosave configfile when --ignore-config is specified

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

 src/modules/modules.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/modules/modules.c b/src/modules/modules.c
index 7c12908..c69cf70 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -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(). */




More information about the vlc-devel mailing list