Explorar el Código

mac-virtualcam: Fix use of collection without explicit type

Swift 5.0 requires empty collections to carry explicit type definitions.
PatTheMav hace 2 años
padre
commit
914951a28d

+ 1 - 1
plugins/mac-virtualcam/src/camera-extension/OBSCameraDeviceSource.swift

@@ -63,7 +63,7 @@ class OBSCameraDeviceSource: NSObject, CMIOExtensionDeviceSource {
             kCVPixelBufferWidthKey: dimensions.width,
             kCVPixelBufferHeightKey: dimensions.height,
             kCVPixelBufferPixelFormatTypeKey: _videoDescription.mediaSubType,
-            kCVPixelBufferIOSurfacePropertiesKey: [:],
+            kCVPixelBufferIOSurfacePropertiesKey: [CFString: CFTypeRef](),
         ]
 
         CVPixelBufferPoolCreate(kCFAllocatorDefault, nil, pixelBufferAttributes, &_bufferPool)