mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 01:40:28 +00:00
Syphon cap.: updated to current API
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user