Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Libraries/MLXVLM/MediaProcessing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ public struct ProcessedFrames {
public let totalDuration: CMTime
}

private let context = CIContext()
// `nonisolated(unsafe)` because CIContext is reference-typed but Apple
// doesn't conform it to Sendable. CIContext is documented as
// thread-safe for the methods we use (createCGImage, render). Without
// this annotation Swift 6.x strict-concurrency rejects the static let
// as a hard error on CI runners (local macOS 26 Swift accepts it).
nonisolated(unsafe) private let context = CIContext()

/// Collection of methods for processing media (images, video, etc.).
///
Expand Down
Loading