Commit 5cf60db6 authored by David Fuhrmann's avatar David Fuhrmann Committed by Jean-Baptiste Kempf

macosx: remove unneeded performSelectorOnMainThread

setActiveVideoPlayback is always called on the main thread nowadays..

(cherry picked from commit f737f942a5ace4cab4fb165b1eaeff8f036395fa)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 27f47992
......@@ -1554,13 +1554,15 @@ static VLCMain *_o_sharedMainInstance = nil;
- (void)setActiveVideoPlayback:(BOOL)b_value
{
assert([NSThread isMainThread]);
b_active_videoplayback = b_value;
if (o_mainwindow) {
[o_mainwindow performSelectorOnMainThread:@selector(setVideoplayEnabled) withObject:nil waitUntilDone:YES];
[o_mainwindow setVideoplayEnabled];
}
// update sleep blockers
[self performSelectorOnMainThread:@selector(playbackStatusUpdated) withObject:nil waitUntilDone:NO];
[self playbackStatusUpdated];
}
#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