Commit d7239492 authored by Brendon Justin's avatar Brendon Justin Committed by 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit fa4b920d664728768c3d15fe7ffc0f0a348cce9e)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 62e338ce
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment