Commit 3968fd2d authored by Jakob Leben's avatar Jakob Leben

Qt: don't emit redundant InputManager::statusChanged() signals

Thanks to Srikanth Raju <srikiraju@gmail.com> for pointing out the problem.
parent 8bcd29bd
...@@ -103,13 +103,14 @@ void InputManager::setInput( input_thread_t *_p_input ) ...@@ -103,13 +103,14 @@ void InputManager::setInput( input_thread_t *_p_input )
{ {
msg_Dbg( p_intf, "IM: Setting an input" ); msg_Dbg( p_intf, "IM: Setting an input" );
vlc_object_hold( p_input ); vlc_object_hold( p_input );
emit statusChanged( PLAYING_S ); addCallbacks();
UpdateStatus();
UpdateName(); UpdateName();
UpdateArt(); UpdateArt();
UpdateTeletext(); UpdateTeletext();
UpdateNavigation(); UpdateNavigation();
UpdateVout(); UpdateVout();
addCallbacks();
p_item = input_GetItem( p_input ); p_item = input_GetItem( p_input );
emit rateChanged( var_GetFloat( p_input, "rate" ) ); emit rateChanged( var_GetFloat( p_input, "rate" ) );
} }
...@@ -695,7 +696,6 @@ void InputManager::togglePlayPause() ...@@ -695,7 +696,6 @@ void InputManager::togglePlayPause()
int state = var_GetInteger( p_input, "state" ); int state = var_GetInteger( p_input, "state" );
state = ( state != PLAYING_S ) ? PLAYING_S : PAUSE_S; state = ( state != PLAYING_S ) ? PLAYING_S : PAUSE_S;
var_SetInteger( p_input, "state", state ); var_SetInteger( p_input, "state", state );
emit statusChanged( state );
} }
} }
......
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