]> git.sesse.net Git - vlc/commitdiff
Qt: MIM initialize p_input through constructor parameter
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Mar 2015 16:21:58 +0000 (17:21 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Mar 2015 16:26:01 +0000 (17:26 +0100)
modules/gui/qt4/input_manager.cpp

index 7338d59e00ff2d5a053a4f830338afb67c2cfae6..8d22701c751be32cad9e73c2c3eb1a6216f20544 100644 (file)
@@ -1007,12 +1007,11 @@ void InputManager::AtoBLoop( float, int64_t i_time, int )
  **********************************************************************/
 
 MainInputManager::MainInputManager( intf_thread_t *_p_intf )
-    : QObject(NULL), p_intf( _p_intf ),
+    : QObject(NULL), p_input( NULL), p_intf( _p_intf ),
       random( VLC_OBJECT(THEPL), "random" ),
       repeat( VLC_OBJECT(THEPL), "repeat" ), loop( VLC_OBJECT(THEPL), "loop" ),
       volume( VLC_OBJECT(THEPL), "volume" ), mute( VLC_OBJECT(THEPL), "mute" )
 {
-    p_input = NULL;
     im = new InputManager( this, p_intf );
 
     var_AddCallback( THEPL, "item-change", ItemChanged, im );