[vlc-commits] macosx: fixed crash when log window is open while progress window is closing

David Fuhrmann git at videolan.org
Mon Jan 9 18:37:57 CET 2012


vlc/vlc-1.2 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Jan  9 13:35:16 2012 +0100| [359200ba5a0f5b531ab66fb357901e6b6645da82] | committer: Jean-Baptiste Kempf

macosx: fixed crash when log window is open while progress window is closing

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
(cherry picked from commit 69a6354729fe83768f0e117889bb415969c25f75)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=359200ba5a0f5b531ab66fb357901e6b6645da82
---

 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 0d24c16..bfe6c32 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];
 }
 



More information about the vlc-commits mailing list