fix: resolve mac camera continuation isolation
This commit is contained in:
@@ -73,7 +73,7 @@ actor CameraCaptureService {
|
|||||||
settings.photoQualityPrioritization = .quality
|
settings.photoQualityPrioritization = .quality
|
||||||
|
|
||||||
var delegate: PhotoCaptureDelegate?
|
var delegate: PhotoCaptureDelegate?
|
||||||
let rawData: Data = try await withCheckedThrowingContinuation(isolation: nil) { cont in
|
let rawData: Data = try await withCheckedThrowingContinuation { cont in
|
||||||
let d = PhotoCaptureDelegate(cont)
|
let d = PhotoCaptureDelegate(cont)
|
||||||
delegate = d
|
delegate = d
|
||||||
output.capturePhoto(with: settings, delegate: d)
|
output.capturePhoto(with: settings, delegate: d)
|
||||||
@@ -156,7 +156,7 @@ actor CameraCaptureService {
|
|||||||
|
|
||||||
let logger = self.logger
|
let logger = self.logger
|
||||||
var delegate: MovieFileDelegate?
|
var delegate: MovieFileDelegate?
|
||||||
let recordedURL: URL = try await withCheckedThrowingContinuation(isolation: nil) { cont in
|
let recordedURL: URL = try await withCheckedThrowingContinuation { cont in
|
||||||
let d = MovieFileDelegate(cont, logger: logger)
|
let d = MovieFileDelegate(cont, logger: logger)
|
||||||
delegate = d
|
delegate = d
|
||||||
output.startRecording(to: tmpMovURL, recordingDelegate: d)
|
output.startRecording(to: tmpMovURL, recordingDelegate: d)
|
||||||
|
|||||||
Reference in New Issue
Block a user