vlc/vlc-1.2 | branch: master | Brendon Justin <[email protected]> | Wed Jan 18 16:35:39 2012 -0500| [d72394921280b585cd06177a8c567cde2e6a7b1a] | committer: Jean-Baptiste Kempf
macosx: Custom caching option should not set values Selecting 'Custom' for cache level in simple preferences should leave current settings alone. Custom levels are set in advanced preferences. Fixes #5868. Signed-off-by: Jean-Baptiste Kempf <[email protected]> (cherry picked from commit fa4b920d664728768c3d15fe7ffc0f0a348cce9e) Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=d72394921280b585cd06177a8c567cde2e6a7b1a --- modules/gui/macosx/simple_prefs.m | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m index 457642a..5c3707a 100644 --- a/modules/gui/macosx/simple_prefs.m +++ b/modules/gui/macosx/simple_prefs.m @@ -901,10 +901,17 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch #define CaCi( name, int ) config_PutInt( p_intf, name, int * [[o_input_cachelevel_pop selectedItem] tag] ) #define CaC( name ) CaCi( name, 1 ) - msg_Dbg( p_intf, "Adjusting all cache values to: %i", (int)[[o_input_cachelevel_pop selectedItem] tag] ); - CaC( "network-caching" ); - CaC( "disc-caching" ); - CaC( "live-caching" ); + if ( [[o_input_cachelevel_pop selectedItem] tag] == 0 ) + { + msg_Dbg( p_intf, "Custom chosen, not adjusting cache values" ); + } + else + { + msg_Dbg( p_intf, "Adjusting all cache values to: %i", (int)[[o_input_cachelevel_pop selectedItem] tag] ); + CaC( "network-caching" ); + CaC( "disc-caching" ); + CaC( "live-caching" ); + } b_inputSettingChanged = NO; } _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
