Skip to content

Commit

Permalink
Merge pull request #10 from dsmurfin/xcode15
Browse files Browse the repository at this point in the history
Support compilation in Xcode 15 (CADisplayLink)
  • Loading branch information
dsmurfin authored Jun 17, 2023
2 parents 87615db + a5387a2 commit 57219d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Sources/VideoIO/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,16 @@ public class Camera {

internal var photoCaptureDelegateHandlers: [AnyObject] = []

private var _audioQueueCaptureSession: AnyObject?

@available(macOS, unavailable)
internal var audioQueueCaptureSession: AudioQueueCaptureSession?
internal var audioQueueCaptureSession: AudioQueueCaptureSession? {
get {
_audioQueueCaptureSession as? AudioQueueCaptureSession
}
set {
_audioQueueCaptureSession = newValue
}
}
}

2 changes: 1 addition & 1 deletion Sources/VideoIO/PlayerVideoOutput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import AVFoundation

@available(macOS, unavailable)
@available(macOS 14.0, *)@available(macOS, unavailable)
public class PlayerVideoOutput: NSObject {

public struct Configuration {
Expand Down

0 comments on commit 57219d9

Please sign in to comment.