Commit ef2b8563 authored by Laurent Aimar's avatar Laurent Aimar

Be sure to emit voutChanged() only when needed.

parent 6341cc88
......@@ -369,10 +369,13 @@ 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 );
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