Bläddra i källkod

mac-virtualcam: Fix use of collection without explicit type

Swift 5.0 requires empty collections to carry explicit type definitions.
PatTheMav 2 år sedan
förälder
incheckning
914951a28d

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

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