summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_common.m
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/cocoa_common.m')
-rw-r--r--video/out/cocoa_common.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 1449da8c75..256671ef19 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -787,7 +787,7 @@ static void vo_cocoa_resize_redraw(struct vo *vo, int width, int height)
// Wait until a new frame with the new size was rendered. For some reason,
// Cocoa requires this to be done before drawRect() returns.
- int64_t e = mp_time_ns_add(mp_time_ns(), 0.1);
+ int64_t e = mp_time_ns() + MP_TIME_MS_TO_NS(100);
while (s->frame_w != width && s->frame_h != height && s->vo_ready) {
if (mp_cond_timedwait_until(&s->wakeup, &s->lock, e))
break;