[vlc-devel] commit: macosx: Attempt to avoid a crash. Note that this can' t be working properly and could create a rare race. (Pierre d'Herbemont )

git version control git at videolan.org
Wed Mar 26 17:36:13 CET 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Mar 26 10:23:35 2008 +0100| [5f84c2fc2138f2904321993f1d99772ae8648281]

macosx: Attempt to avoid a crash. Note that this can't be working properly and could create a rare race.

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

 modules/gui/macosx/intf.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index c650013..00d3cdc 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1238,7 +1238,7 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     vlc_object_release( p_playlist );
 
-    while( !intf_ShouldDie( p_intf ) )
+    while( (p_intf = VLCIntf) && !intf_ShouldDie( p_intf ) )
     {
         vlc_mutex_lock( &p_intf->change_lock );
 




More information about the vlc-devel mailing list