Remove Equalizer from the menu (as for the mac version)
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 28 Jul 2008 03:31:54 +0000 (20:31 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 28 Jul 2008 03:31:54 +0000 (20:31 -0700)
Since the aout is destroyed when equalizer is activated, the callback registration doesn't work and only HACKs can solve that (msleep).

Close #1740

modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/menus.cpp

index 6cc7a34..ca7d471 100644 (file)
@@ -917,18 +917,6 @@ void Equalizer::enable( bool 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 */
index 4b5d39a..d8254b7 100644 (file)
@@ -217,7 +217,6 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object,
     PUSH_INPUTVAR( "audio-es" );
     PUSH_VAR( "audio-device" );
     PUSH_VAR( "audio-channels" );
-    PUSH_VAR( "equalizer" );
     PUSH_VAR( "visual" );
     return VLC_SUCCESS;
 }
@@ -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-device", qtr( "Audio &Device" ) );
         ACT_ADD( current, "audio-channels", qtr( "Audio &Channels" ) );
-        ACT_ADD( current, "equalizer", qtr( "&Equalizer" ) );
         current->addSeparator();
         ACT_ADD( current, "visual", qtr( "&Visualizations" ) );
     }