Commit 1814dd90 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Simplify

parent 63930524
......@@ -177,8 +177,8 @@ void libvlc_wait( libvlc_instance_t *p_i )
{
libvlc_int_t *p_libvlc = p_i->p_libvlc_int;
vlc_object_lock( p_libvlc );
if( vlc_object_alive( p_libvlc ) )
while( !vlc_object_wait( p_libvlc ) );
while( vlc_object_alive( p_libvlc ) )
vlc_object_wait( p_libvlc );
vlc_object_unlock( p_libvlc );
}
......
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