Commit 5e103140 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Also use the new API here

parent e6629c22
...@@ -1147,11 +1147,8 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, ...@@ -1147,11 +1147,8 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc,
if( p_intf->pf_run ) if( p_intf->pf_run )
vlc_thread_join( p_intf ); vlc_thread_join( p_intf );
else else
{ while( vlc_object_lock_and_wait( p_intf ) == 0 );
vlc_mutex_lock( &p_intf->object_lock );
vlc_cond_wait( &p_intf->object_wait, &p_intf->object_lock );
vlc_mutex_unlock( &p_intf->object_lock );
}
vlc_object_detach( p_intf ); vlc_object_detach( p_intf );
intf_Destroy( p_intf ); intf_Destroy( p_intf );
} }
......
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