[vlc-commits] macosx: don't do AppKit stuff from non-main threads (fixes #5139)

Felix Paul Kühne git at videolan.org
Sun Sep 25 12:05:20 CEST 2011


vlc/vlc-1.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Sep 25 12:05:16 2011 +0200| [817937e83a869b70ab427234fc2f110484a93e21] | committer: Felix Paul Kühne

macosx: don't do AppKit stuff from non-main threads (fixes #5139)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=817937e83a869b70ab427234fc2f110484a93e21
---

 modules/gui/macosx/intf.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index bdcfdcb..d5e4117 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -265,7 +265,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];
 }
 



More information about the vlc-commits mailing list