Commit 29477d27 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Be sure to emit voutChanged() only when needed.

parent 6bdf53c3
......@@ -369,11 +369,14 @@ void InputManager::UpdateVout()
{
if( hasInput() )
{
bool b_old_video = b_video;
vlc_object_t *p_vout = (vlc_object_t*)vlc_object_find( p_input, VLC_OBJECT_VOUT, FIND_CHILD );
b_video = p_vout != NULL;
if( p_vout )
vlc_object_release( p_vout );
emit voutChanged( b_video );
if( !!b_old_video != !!b_video )
emit voutChanged( b_video );
}
}
......
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