summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
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"))