[vlc-devel] [PATCH 1/2] macosx: Custom caching option should not set values
Brendon Justin
brendonjustin at gmail.com
Wed Jan 18 22:35:39 CET 2012
Selecting 'Custom' for cache level in simple preferences should leave current
settings alone. Custom levels are set in advanced preferences. Fixes #5868.
---
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 fae88a3..9ae34f3 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -902,10 +902,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;
}
--
1.7.5.4
More information about the vlc-devel
mailing list