Commit c6adecf5 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Remove Equalizer from the menu (as for the mac version)

Since the aout is destroyed when equalizer is activated, the callback registration doesn't work and only HACKs can solve that (msleep).

Close #1740
parent 569f3309
...@@ -917,18 +917,6 @@ void Equalizer::enable( bool en ) ...@@ -917,18 +917,6 @@ void Equalizer::enable( bool en )
{ {
bands[i]->setEnabled( en ); band_texts[i]->setEnabled( en ); bands[i]->setEnabled( en ); band_texts[i]->setEnabled( en );
} }
#if 0
msleep( 10000 );
aout_instance_t *p_aout= ( aout_instance_t * )vlc_object_find( p_intf,
VLC_OBJECT_AOUT, FIND_ANYWHERE );
if( en )
addCallbacks( p_aout );
else
delCallbacks( p_aout );
#endif
} }
/* Function called when the set2Pass button is activated */ /* Function called when the set2Pass button is activated */
......
...@@ -217,7 +217,6 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object, ...@@ -217,7 +217,6 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object,
PUSH_INPUTVAR( "audio-es" ); PUSH_INPUTVAR( "audio-es" );
PUSH_VAR( "audio-device" ); PUSH_VAR( "audio-device" );
PUSH_VAR( "audio-channels" ); PUSH_VAR( "audio-channels" );
PUSH_VAR( "equalizer" );
PUSH_VAR( "visual" ); PUSH_VAR( "visual" );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -457,7 +456,6 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current ) ...@@ -457,7 +456,6 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current )
ACT_ADD( current, "audio-es", qtr( "Audio &Track" ) ); ACT_ADD( current, "audio-es", qtr( "Audio &Track" ) );
ACT_ADD( current, "audio-device", qtr( "Audio &Device" ) ); ACT_ADD( current, "audio-device", qtr( "Audio &Device" ) );
ACT_ADD( current, "audio-channels", qtr( "Audio &Channels" ) ); ACT_ADD( current, "audio-channels", qtr( "Audio &Channels" ) );
ACT_ADD( current, "equalizer", qtr( "&Equalizer" ) );
current->addSeparator(); current->addSeparator();
ACT_ADD( current, "visual", qtr( "&Visualizations" ) ); ACT_ADD( current, "visual", qtr( "&Visualizations" ) );
} }
......
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