diff --git a/mac/vcam.mm b/mac/vcam.mm index 4a52d29..e4100c4 100644 --- a/mac/vcam.mm +++ b/mac/vcam.mm @@ -74,11 +74,14 @@ Modifications Copyright (C) 2020 by Streamlabs (General Workings Inc) uint32_t VirtualCam::createSharedMemory() { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" NSDictionary *surfaceAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithBool:YES], (NSString *)kIOSurfaceIsGlobal, [NSNumber numberWithUnsignedInteger:(NSUInteger)this->width], (NSString *)kIOSurfaceWidth, [NSNumber numberWithUnsignedInteger:(NSUInteger)this->height], (NSString *)kIOSurfaceHeight, [NSNumber numberWithUnsignedInteger:2U], (NSString *)kIOSurfaceBytesPerElement, nil]; +#pragma clang diagnostic pop auto surface = IOSurfaceCreate((CFDictionaryRef)surfaceAttributes); CFRelease(surfaceAttributes); @@ -118,4 +121,4 @@ Modifications Copyright (C) 2020 by Streamlabs (General Workings Inc) void VirtualCam::setHorizontalMirroring(bool state) { this->ipc_client.setMirroring(this->deviceID, state, true); -} \ No newline at end of file +}