From e7df95b10d76d62e3feb40b0b38469b3b1d20461 Mon Sep 17 00:00:00 2001 From: der richter Date: Tue, 26 Mar 2024 23:21:34 +0100 Subject: mac: rename mpvHandle to mpv --- video/out/cocoa_cb_common.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'video/out/cocoa_cb_common.swift') 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")) -- cgit v1.2.3