macosx: Attempt to avoid a crash. Note that this can't be working properly and could...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 26 Mar 2008 09:23:35 +0000 (10:23 +0100)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 26 Mar 2008 16:36:07 +0000 (17:36 +0100)
modules/gui/macosx/intf.m

index c650013..00d3cdc 100644 (file)
@@ -1238,7 +1238,7 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     vlc_object_release( p_playlist );
 
 
     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 );
 
     {
         vlc_mutex_lock( &p_intf->change_lock );