fix(ios): clear the compiler warnings from the first CI build

previewPalette does not throw, and mpv's wid now gets the layer's address
as an explicit int64 instead of a pointer to a Swift reference.
This commit is contained in:
nvrl committed 2026-10-07 01:27:10 +02:00
1 parent 3356602951
commit 4b9c01d52d
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -110,7 +110,8 @@ final class MpvPlayer {
layer.framebufferOnly = true
layer.backgroundColor = UIColor.black.cgColor
guard let mpv = mpv_create() else { return }
var wid = layer
// mpv takes the layer's address as an int64, not a Swift reference.
var wid = Int64(Int(bitPattern: Unmanaged.passUnretained(layer).toOpaque()))
mpv_set_option(mpv, "wid", MPV_FORMAT_INT64, &wid)
for (name, value) in [
("config", "no"),