[vlc-devel] commit: libvlc: Don't wait if p_libvlc is dying in libvlc_wait(). (Pierre d 'Herbemont )

git version control git at videolan.org
Fri May 30 17:54:37 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Fri May 30 17:54:39 2008 +0200| [47e1374a4ece32cb234b361da3dccfb1f846e7ee]

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47e1374a4ece32cb234b361da3dccfb1f846e7ee
---

 src/control/core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/control/core.c b/src/control/core.c
index d8232d1..d7b220c 100644
--- a/src/control/core.c
+++ b/src/control/core.c
@@ -177,7 +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 );
-    while( !vlc_object_wait( p_libvlc ) );
+    if( vlc_object_alive( p_libvlc ) )
+        while( !vlc_object_wait( p_libvlc ) );
     vlc_object_unlock( p_libvlc );
 }
 




More information about the vlc-devel mailing list