Commit 5a95ab4f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Qt4: remove incorrect use of EQ callbacks

 * deleting non-existent callback is not allowed (-> abort),
 * adding a callback but not deleting it is a bad idea,
 * deleting a callback while setting the valeu can race against other
   interfaces.
parent fed21848
......@@ -1054,13 +1054,11 @@ void Equalizer::setCorePreset( int i_preset )
aout_instance_t *p_aout= THEMIM->getAout();
if( p_aout )
{
delCallbacks( p_aout );
var_SetString( p_aout , "equalizer-preset" , preset_list[i_preset] );
var_SetString( p_aout, "equalizer-bands", psz_values );
var_SetFloat( p_aout, "equalizer-preamp",
eqz_preset_10b[i_preset]->f_preamp );
addCallbacks( p_aout );
vlc_object_release( p_aout );
}
config_PutPsz( p_intf, "equalizer-bands", psz_values );
......
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