Browse Source

mac-avcapture: Resolve deprecation warnings to reflect 12.0 target

jcm 3 months ago
parent
commit
9dc9d67fd0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/mac-avcapture/OBSAVCapture.m

+ 1 - 1
plugins/mac-avcapture/OBSAVCapture.m

@@ -24,7 +24,7 @@ static const UInt32 kMaxFrameRateRangesInDescription = 10;
 
 
     if (self) {
     if (self) {
         CMIOObjectPropertyAddress propertyAddress = {kCMIOHardwarePropertyAllowScreenCaptureDevices,
         CMIOObjectPropertyAddress propertyAddress = {kCMIOHardwarePropertyAllowScreenCaptureDevices,
-                                                     kCMIOObjectPropertyScopeGlobal, kCMIOObjectPropertyElementMaster};
+                                                     kCMIOObjectPropertyScopeGlobal, kCMIOObjectPropertyElementMain};
 
 
         UInt32 allow = 1;
         UInt32 allow = 1;
         CMIOObjectSetPropertyData(kCMIOObjectSystemObject, &propertyAddress, 0, NULL, sizeof(allow), &allow);
         CMIOObjectSetPropertyData(kCMIOObjectSystemObject, &propertyAddress, 0, NULL, sizeof(allow), &allow);