Commit b0936ef9 authored by Laurent Aimar's avatar Laurent Aimar

Let equalizer-2pass handle the reset of the equalizer in qt4.

It avoids a race condition with aout_input_t contents.
parent 8e7f4470
...@@ -952,18 +952,12 @@ void Equalizer::set2Pass() ...@@ -952,18 +952,12 @@ void Equalizer::set2Pass()
aout_instance_t *p_aout= THEMIM->getAout(); aout_instance_t *p_aout= THEMIM->getAout();
bool b_2p = ui.eq2PassCheck->isChecked(); bool b_2p = ui.eq2PassCheck->isChecked();
if( p_aout == NULL ) if( p_aout )
config_PutInt( p_intf, "equalizer-2pass", b_2p );
else
{ {
var_SetBool( p_aout, "equalizer-2pass", b_2p ); var_SetBool( p_aout, "equalizer-2pass", b_2p );
config_PutInt( p_intf, "equalizer-2pass", b_2p );
for( int i = 0; i < p_aout->i_nb_inputs; i++ )
{
p_aout->pp_inputs[i]->b_restart = true;
}
vlc_object_release( p_aout ); vlc_object_release( p_aout );
} }
config_PutInt( p_intf, "equalizer-2pass", b_2p );
} }
/* Function called when the preamp slider is moved */ /* Function called when the preamp slider is moved */
......
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