summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_cb_common.swift
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-10 00:51:46 +0100
committerder richter <der.richter@gmx.de>2024-03-14 23:33:15 +0100
commit055e9cd93e96b4310618a25e990221d73f4efb03 (patch)
treee5fefd48928f9e9aec90a51e0109752515f3bf83 /video/out/cocoa_cb_common.swift
parentf3e5fea4f55e21f2f29874552a547fd5c75e629d (diff)
downloadmpv-055e9cd93e96b4310618a25e990221d73f4efb03.tar.bz2
mpv-055e9cd93e96b4310618a25e990221d73f4efb03.tar.xz
mac/helper: move input ctx related functionality into new input helper
also make functions thread safe.
Diffstat (limited to 'video/out/cocoa_cb_common.swift')
-rw-r--r--video/out/cocoa_cb_common.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift
index 2b260a2999..46e999fbb2 100644
--- a/video/out/cocoa_cb_common.swift
+++ b/video/out/cocoa_cb_common.swift
@@ -40,6 +40,7 @@ class CocoaCB: Common {
func preinit(_ vo: UnsafeMutablePointer<vo>) {
mpv = MPVHelper(vo, log)
+ input = InputHelper(vo.pointee.input_ctx, mpv)
if backendState == .uninitialized {
backendState = .needsInit