Răsfoiți Sursa

mac-avcapture: Resolve deprecation warnings to reflect 12.0 target

jcm 4 luni în urmă
părinte
comite
9dc9d67fd0
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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) {
         CMIOObjectPropertyAddress propertyAddress = {kCMIOHardwarePropertyAllowScreenCaptureDevices,
-                                                     kCMIOObjectPropertyScopeGlobal, kCMIOObjectPropertyElementMaster};
+                                                     kCMIOObjectPropertyScopeGlobal, kCMIOObjectPropertyElementMain};
 
         UInt32 allow = 1;
         CMIOObjectSetPropertyData(kCMIOObjectSystemObject, &propertyAddress, 0, NULL, sizeof(allow), &allow);