Commit 2e40b4c5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix deadlock when quitting the dummy interface

parent ca797b13
...@@ -217,7 +217,12 @@ static void RunInterface( intf_thread_t *p_intf ) ...@@ -217,7 +217,12 @@ static void RunInterface( intf_thread_t *p_intf )
if( p_intf->pf_run ) if( p_intf->pf_run )
p_intf->pf_run( p_intf ); p_intf->pf_run( p_intf );
else else
while( vlc_object_lock_and_wait( p_intf ) == 0 ); {
vlc_object_lock( p_intf );
while( vlc_object_alive( p_intf ) )
vlc_object_wait( p_intf );
vlc_object_unlock( p_intf );
}
/* Reset play on start status */ /* Reset play on start status */
p_intf->b_play = false; p_intf->b_play = false;
......
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