From 5f84c2fc2138f2904321993f1d99772ae8648281 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 26 Mar 2008 10:23:35 +0100 Subject: [PATCH] macosx: Attempt to avoid a crash. Note that this can't be working properly and could create a rare race. --- modules/gui/macosx/intf.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m index c650013d17..00d3cdc1c5 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 ); -- GitLab