From 98b1f861cbd84ad07f3677d112c06a1bb2c92b45 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 1 Nov 2014 17:25:38 +0100 Subject: cocoa: fix fullscreen delay when paused NSDisableScreenUpdates came to hunt me in the end and when mpv was paused, it did wait for a frame that never came (because of interaction with the live resizing code)! --- video/out/cocoa_common.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 33e63fc198..d34dc59964 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -501,8 +501,8 @@ static void draw_changes_after_next_frame(struct vo *vo) void vo_cocoa_swap_buffers(struct vo *vo) { struct vo_cocoa_state *s = vo->cocoa; - if (s->skip_swap_buffer) { - vo->want_redraw = true; + + if (s->skip_swap_buffer && !s->waiting_frame) { s->skip_swap_buffer = false; return; } else { -- cgit v1.2.3