Commit f737f942 authored by David Fuhrmann's avatar David Fuhrmann

macosx: remove unneeded performSelectorOnMainThread

setActiveVideoPlayback is always called on the main thread nowadays..
parent 97a9763b
...@@ -1554,13 +1554,15 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1554,13 +1554,15 @@ static VLCMain *_o_sharedMainInstance = nil;
- (void)setActiveVideoPlayback:(BOOL)b_value - (void)setActiveVideoPlayback:(BOOL)b_value
{ {
assert([NSThread isMainThread]);
b_active_videoplayback = b_value; b_active_videoplayback = b_value;
if (o_mainwindow) { if (o_mainwindow) {
[o_mainwindow performSelectorOnMainThread:@selector(setVideoplayEnabled) withObject:nil waitUntilDone:YES]; [o_mainwindow setVideoplayEnabled];
} }
// update sleep blockers // update sleep blockers
[self performSelectorOnMainThread:@selector(playbackStatusUpdated) withObject:nil waitUntilDone:NO]; [self playbackStatusUpdated];
} }
#pragma mark - #pragma mark -
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment