vlc | branch: master | Felix Paul Kühne <[email protected]> | 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

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to