diff --git a/Sources/SJSAssetExportSession/SampleWriter.swift b/Sources/SJSAssetExportSession/SampleWriter.swift index 7b33087..57f6a13 100644 --- a/Sources/SJSAssetExportSession/SampleWriter.swift +++ b/Sources/SJSAssetExportSession/SampleWriter.swift @@ -221,7 +221,7 @@ actor SampleWriter { } audioInput.requestMediaDataWhenReady(on: queue) { - // NOTE: assumeIsolated crashes on macOS at the moment + // NOTE: assumeIsolated crashes on macOS with Swift 6.0, fixed in 6.1 self.assumeIsolated { _self in _self.writeAllReadySamples() } @@ -230,7 +230,7 @@ actor SampleWriter { private func startEncodingVideoTracks() { videoInput!.requestMediaDataWhenReady(on: queue) { - // NOTE: assumeIsolated crashes on macOS at the moment + // NOTE: assumeIsolated crashes on macOS with Swift 6.0, fixed in 6.1 self.assumeIsolated { _self in _self.writeAllReadySamples() } diff --git a/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift b/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift index 1bf63c5..9084e02 100644 --- a/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift +++ b/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift @@ -43,7 +43,7 @@ final class ExportSessionTests: BaseTests { #expect(try await videoTrack.load(.naturalSize) == CGSize(width: 1280, height: 720)) #expect(try await videoTrack.load(.nominalFrameRate) == 24.0) let dataRate = try await videoTrack.load(.estimatedDataRate) - #expect((1_000_000 ... 1_100_000).contains(dataRate)) + #expect((900_000 ... 1_100_000).contains(dataRate)) let videoFormat = try #require(await videoTrack.load(.formatDescriptions).first) #expect(videoFormat.mediaType == .video) #expect(videoFormat.mediaSubType == .h264) @@ -92,7 +92,7 @@ final class ExportSessionTests: BaseTests { #expect(try await videoTrack.load(.naturalSize) == CGSize(width: 1280, height: 720)) #expect(try await videoTrack.load(.nominalFrameRate) == 24.0) let dataRate = try await videoTrack.load(.estimatedDataRate) - #expect((1_000_000 ... 1_100_000).contains(dataRate)) + #expect((900_000 ... 1_100_000).contains(dataRate)) let videoFormat = try #require(await videoTrack.load(.formatDescriptions).first) #expect(videoFormat.mediaType == .video) #expect(videoFormat.mediaSubType == .h264)