]> git.sesse.net Git - vlc/commitdiff
macosx: thou shall not close AppKit windows off main thread
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 19 Oct 2012 10:39:48 +0000 (12:39 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 19 Oct 2012 10:40:03 +0000 (12:40 +0200)
modules/gui/macosx/intf.m

index df909f726bed3036a4242cd5e6d1985fd17e8251..0a9f488f2c24a2122aeb7d0d2848e28179e5e249 100644 (file)
@@ -480,7 +480,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:YES];
     [o_pool release];
 }