From af7b412d1c0b74c63d4d301f5cc5cb2cd32c2108 Mon Sep 17 00:00:00 2001 From: Akemi Date: Fri, 16 Mar 2018 13:52:15 +0100 Subject: cocoa-cb: fix shutdown when fullscreen animation is running commit 2edf00f changed the MPV_EVENT_SHUTDOWN behaviour slightly, such that it will only be sent once. cocoa-cb relied on it being sent continuously till all mpv_handles are destroyed. now it manually shuts down and destroys the mpv_handle after the animation instead of relying on this removed behaviour. --- video/out/cocoa-cb/window.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/cocoa-cb') diff --git a/video/out/cocoa-cb/window.swift b/video/out/cocoa-cb/window.swift index 040cd47751..b296eb25c8 100644 --- a/video/out/cocoa-cb/window.swift +++ b/video/out/cocoa-cb/window.swift @@ -306,7 +306,7 @@ class Window: NSWindow, NSWindowDelegate { isAnimating = false cocoaCB.layer.neededFlips += 1 - cocoaCB.isShuttingDown = false + cocoaCB.checkShutdown() } func setToFullScreen() { -- cgit v1.2.3