summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-11-01 17:25:38 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-11-01 17:29:10 +0100
commit98b1f861cbd84ad07f3677d112c06a1bb2c92b45 (patch)
treea109fea1ab346b361034ba2fa7f333cfe2a6601b /video
parentfccd08f43be2e2a9f3e7927efc38ffa33de01a3f (diff)
downloadmpv-98b1f861cbd84ad07f3677d112c06a1bb2c92b45.tar.bz2
mpv-98b1f861cbd84ad07f3677d112c06a1bb2c92b45.tar.xz
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)!
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa_common.m4
1 files 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 {