Commit 47e1374a authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

libvlc: Don't wait if p_libvlc is dying in libvlc_wait().

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