From 48a463d641697930b332a00cd9b807a3f6c170d9 Mon Sep 17 00:00:00 2001 From: Akemi Date: Sun, 27 Jan 2019 18:38:22 +0100 Subject: cocoa-cb: wakeup vo when new events are available new events were added but not fetched by the vo, because we didn't signal the vo that new events were available. actually wakeup the vo when new events are available. --- video/out/cocoa_cb_common.swift | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out') diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index ae79144d97..245702a438 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -88,6 +88,7 @@ class CocoaCB: NSObject { func initBackend(_ vo: UnsafeMutablePointer) { let opts: mp_vo_opts = vo.pointee.opts.pointee + mpv.vo = vo NSApp.setActivationPolicy(.regular) setAppIcon() @@ -363,6 +364,7 @@ class CocoaCB: NSObject { eventsLock.lock() events |= ev eventsLock.unlock() + vo_wakeup(mpv.vo) } func checkEvents() -> Int { -- cgit v1.2.3