[vlc-commits] macosx: don't do AppKit stuff if you're unsure that it's on the main thread ..

Felix Paul Kühne git at videolan.org
Fri Dec 2 17:24:00 CET 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Dec  2 17:23:47 2011 +0100| [b409f07d68f76063c98b778a060217c840b74dc1] | committer: Felix Paul Kühne

macosx: don't do AppKit stuff if you're unsure that it's on the main thread..

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

 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 2c2fe88..0120457 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -636,7 +636,7 @@ static VLCMain *_o_sharedMainInstance = nil;
     [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(computerWillSleep:)
            name:NSWorkspaceWillSleepNotification object:nil];
 
-    [NSThread detachNewThreadSelector:@selector(lookForCrashLog) toTarget:self withObject:nil];
+    [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(lookForCrashLog) withObject:nil waitUntilDone:NO];
 }
 
 - (void)initStrings



More information about the vlc-commits mailing list