summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-26 23:21:34 +0100
committerder richter <der.richter@gmx.de>2024-03-29 14:20:40 +0100
commite7df95b10d76d62e3feb40b0b38469b3b1d20461 (patch)
tree0607f786cc91d2f6dc3eb23ab5ee1198067af895 /video/out
parente71e340b77c65b71510a74b69d262ca9e3ee8032 (diff)
downloadmpv-e7df95b10d76d62e3feb40b0b38469b3b1d20461.tar.bz2
mpv-e7df95b10d76d62e3feb40b0b38469b3b1d20461.tar.xz
mac: rename mpvHandle to mpv
Diffstat (limited to 'video/out')
-rw-r--r--video/out/cocoa_cb_common.swift9
1 files changed, 4 insertions, 5 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift
index 36721391c8..1e207b253d 100644
--- a/video/out/cocoa_cb_common.swift
+++ b/video/out/cocoa_cb_common.swift
@@ -30,11 +30,10 @@ class CocoaCB: Common, EventSubscriber {
}
var backendState: State = .uninitialized
-
- init(_ mpvHandle: OpaquePointer) {
- let newlog = mp_log_new(UnsafeMutablePointer(mpvHandle), mp_client_get_log(mpvHandle), "cocoacb")
- let option = OptionHelper(UnsafeMutablePointer(mpvHandle), mp_client_get_global(mpvHandle))
- libmpv = LibmpvHelper(mpvHandle, newlog)
+ init(_ mpv: OpaquePointer) {
+ let newlog = mp_log_new(UnsafeMutablePointer(mpv), mp_client_get_log(mpv), "cocoacb")
+ let option = OptionHelper(UnsafeMutablePointer(mpv), mp_client_get_global(mpv))
+ libmpv = LibmpvHelper(mpv, newlog)
super.init(option, newlog)
layer = GLLayer(cocoaCB: self)
AppHub.shared.event?.subscribe(self, event: .init(name: "MPV_EVENT_SHUTDOWN"))