This fixes a bug reported on the forum at
http://forum.videolan.org/viewtopic.php?f=2&t=98332
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()