From 69a6354729fe83768f0e117889bb415969c25f75 Mon Sep 17 00:00:00 2001 From: David Fuhrmann <david.fuhrmann@googlemail.com> Date: Mon, 9 Jan 2012 13:35:16 +0100 Subject: [PATCH] macosx: fixed crash when log window is open while progress window is closing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org> --- 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 0d24c16df21a..bfe6c32b66d0 100644 --- a/modules/gui/macosx/intf.m +++ b/modules/gui/macosx/intf.m @@ -441,7 +441,7 @@ void updateProgressPanel (void *priv, const char *text, float value) void destroyProgressPanel (void *priv) { NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init]; - [[[VLCMain sharedInstance] coreDialogProvider] destroyProgressPanel]; + [[[VLCMain sharedInstance] coreDialogProvider] performSelectorOnMainThread:@selector(destroyProgressPanel) withObject:nil waitUntilDone:NO]; [o_pool release]; } -- GitLab