[vlc-devel] commit: Let equalizer-2pass handle the reset of the equalizer in qt4. ( Laurent Aimar )
git version control
git at videolan.org
Tue Aug 25 23:29:22 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Aug 25 23:15:02 2009 +0200| [b0936ef9c1f1c2a625fa02023c0775f71e6e8588] | committer: Laurent Aimar
Let equalizer-2pass handle the reset of the equalizer in qt4.
It avoids a race condition with aout_input_t contents.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0936ef9c1f1c2a625fa02023c0775f71e6e8588
---
modules/gui/qt4/components/extended_panels.cpp | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 6992757..045c245 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -952,18 +952,12 @@ void Equalizer::set2Pass()
aout_instance_t *p_aout= THEMIM->getAout();
bool b_2p = ui.eq2PassCheck->isChecked();
- if( p_aout == NULL )
- config_PutInt( p_intf, "equalizer-2pass", b_2p );
- else
+ if( p_aout )
{
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 );
}
+ config_PutInt( p_intf, "equalizer-2pass", b_2p );
}
/* Function called when the preamp slider is moved */
More information about the vlc-devel
mailing list