[vlc-devel] commit: macosx: Do NOT call config_SaveConfigFile() if you don' t intend to save ALL the options that might have changed. If you want to autosave something, the config option needs to be marked with change_autosave() and the core will save the option. (Derk-Jan Hartman )
git version control
git at videolan.org
Mon Aug 25 16:32:52 CEST 2008
vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Mon Aug 25 15:59:26 2008 +0200| [867ca80aaf39f311e2fd74c1fa41e2637154feff] | committer: Derk-Jan Hartman
macosx: Do NOT call config_SaveConfigFile() if you don't intend to save ALL the options that might have changed. If you want to autosave something, the config option needs to be marked with change_autosave() and the core will save the option.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=867ca80aaf39f311e2fd74c1fa41e2637154feff
---
modules/gui/macosx/intf.m | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 256f6a2..015cd16 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -659,11 +659,6 @@ static VLCMain *_o_sharedMainInstance = nil;
/* make sure that the current volume is saved */
config_PutInt( p_intf->p_libvlc, "volume", i_lastShownVolume );
- returnedValue = config_SaveConfigFile( p_intf->p_libvlc, "main" );
- if( returnedValue != 0 )
- msg_Err( p_intf,
- "error while saving volume in osx's terminate method (%i)",
- returnedValue );
/* save the prefs if they were changed in the extended panel */
if(o_extended && [o_extended getConfigChanged])
More information about the vlc-devel
mailing list