[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
Sat Dec 3 16:54:19 CET 2011
vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Dec 2 17:23:47 2011 +0100| [b75091cc1233d1fa3dfa29d3df1bc330c4a9b00c] | committer: Jean-Baptiste Kempf
macosx: don't do AppKit stuff if you're unsure that it's on the main thread..
(cherry picked from commit b409f07d68f76063c98b778a060217c840b74dc1)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=b75091cc1233d1fa3dfa29d3df1bc330c4a9b00c
---
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