Commit 0c1f7006 authored by Erwan Tulou's avatar Erwan Tulou

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
parent 74c8629c
......@@ -950,6 +950,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