[vlc-commits] macosx: thou shall not close AppKit windows off main thread

Felix Paul Kühne git at videolan.org
Fri Oct 19 12:42:09 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Oct 19 12:39:48 2012 +0200| [55166973c5863d2bd91f9ed782c3f6d1e9b7a564] | committer: Felix Paul Kühne

macosx: thou shall not close AppKit windows off main thread

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

 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 df909f7..0a9f488 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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];
 }
 



More information about the vlc-commits mailing list