summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2019-01-27 18:38:22 +0100
committerJan Ekström <jeebjp@gmail.com>2019-04-02 01:46:52 +0300
commit48a463d641697930b332a00cd9b807a3f6c170d9 (patch)
treed38dabd576a546f45995545106132c7be3663c45 /video
parent61005e10ea40b122fc6546cf3094a6cd5fbeb808 (diff)
downloadmpv-48a463d641697930b332a00cd9b807a3f6c170d9.tar.bz2
mpv-48a463d641697930b332a00cd9b807a3f6c170d9.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa_cb_common.swift2
1 files changed, 2 insertions, 0 deletions
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<vo>) {
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 {