From df8494bcec3595f8f4cf74eba68feb2990f79a0b Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 14 Apr 2020 15:29:49 +0200 Subject: [PATCH] Syphon cap.: updated to current API --- src/video_capture/syphon.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_capture/syphon.mm b/src/video_capture/syphon.mm index dc85028b2..d71eb9319 100644 --- a/src/video_capture/syphon.mm +++ b/src/video_capture/syphon.mm @@ -249,11 +249,11 @@ static void oneshot_init(int value [[gnu::unused]]) LOG(LOG_LEVEL_WARNING) << "[Syphon capture] FPS set to " << FPS << ". Use override_fps to override if you know FPS of the server.\n"; } - s->client = [[SyphonClient alloc] initWithServerDescription:[descriptions lastObject] options:nil newFrameHandler:^(SyphonClient *client) { + s->client = [[SyphonClient alloc] initWithServerDescription:[descriptions lastObject] context:CGLGetCurrentContext() options:nil newFrameHandler:^(SyphonClient *client) { if ([client hasNewFrame] == NO) return; - SyphonImage *img = [client newFrameImageForContext: CGLGetCurrentContext()]; + SyphonImage *img = [client newFrameImage]; unsigned int width = [img textureSize].width; unsigned int height = [img textureSize].height;