Commit 345e93b0 authored by Erwan Tulou's avatar Erwan Tulou Committed by Jean-Baptiste Kempf

qt4: fix the main input manager initialization.

This fixes a bug reported on the forum at
http://forum.videolan.org/viewtopic.php?f=2&t=98332
(cherry picked from commit 0c1f7006)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f42f00c8
......@@ -955,6 +955,14 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
DCONNECT( this, inputChanged( input_thread_t * ),
im, setInput( input_thread_t * ) );
/* initialize p_input (an input can already be running) */
p_input = playlist_CurrentInput( pl_Get(p_intf) );
if( p_input )
{
if( !p_intf->p_sys->b_isDialogProvider )
var_AddCallback( p_input, "state", PLItemChanged, this );
emit inputChanged( p_input );
}
}
MainInputManager::~MainInputManager()
......
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