[vlc-commits] macosx: save volume in prefs only if controls are	editable
    David Fuhrmann 
    git at videolan.org
       
    Sun Feb  5 15:08:05 CET 2012
    
    
  
vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Feb  4 18:14:57 2012 +0100| [05bd0ced0a6bb059f3381b7d9df3e6acf8120379] | committer: Jean-Baptiste Kempf
macosx: save volume in prefs only if controls are editable
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
(cherry picked from commit 53b2dfec818f44b33bc6e52a5a81fab2cb346cb2)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=05bd0ced0a6bb059f3381b7d9df3e6acf8120379
---
 modules/gui/macosx/simple_prefs.m |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index 7d47855..1527a80 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -855,7 +855,8 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
     if( b_audioSettingChanged )
     {
         config_PutInt( p_intf, "audio", [o_audio_enable_ckb state] );
-        config_PutInt( p_intf, "volume", [o_audio_vol_fld intValue] * AOUT_VOLUME_MAX / 200 );
+        if( [o_audio_vol_fld isEnabled] )
+            config_PutInt( p_intf, "volume", [o_audio_vol_fld intValue] * AOUT_VOLUME_MAX / 200 );
         config_PutInt( p_intf, "macosx-autosave-volume", [o_audio_autosavevol_yes_bcell state] );
         config_PutInt( p_intf, "spdif", [o_audio_spdif_ckb state] );
 
    
    
More information about the vlc-commits
mailing list