[vlc-commits] macosx: fixed crash when terminating while the progress panel is displayed

Felix Paul Kühne git at videolan.org
Sun Nov 11 16:14:00 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Nov 11 16:13:51 2012 +0100| [6c62d7475dce83cbc116f4bcc470ee4f9078e6c1] | committer: Felix Paul Kühne

macosx: fixed crash when terminating while the progress panel is displayed

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

 modules/gui/macosx/intf.m |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index bdf3181..898b123 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -478,7 +478,10 @@ void updateProgressPanel (void *priv, const char *text, float value)
 void destroyProgressPanel (void *priv)
 {
     NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];
-    [[[VLCMain sharedInstance] coreDialogProvider] performSelectorOnMainThread:@selector(destroyProgressPanel) withObject:nil waitUntilDone:YES];
+
+    if ([[NSApplication sharedApplication] isRunning])
+        [[[VLCMain sharedInstance] coreDialogProvider] performSelectorOnMainThread:@selector(destroyProgressPanel) withObject:nil waitUntilDone:YES];
+
     [o_pool release];
 }
 



More information about the vlc-commits mailing list