diff options
author | Dudemanguy <random342@airmail.cc> | 2023-10-11 15:04:47 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-16 15:38:59 +0000 |
commit | 39b9635305e84b57520be5e030d3dc3f241ba7df (patch) | |
tree | c0b340c2a38006b3ada255db030a2cfa8cd14e3c /video/out/cocoa_common.m | |
parent | 92976b1e8caf734815d6b3f89bb5e30c6325c86d (diff) | |
download | mpv-39b9635305e84b57520be5e030d3dc3f241ba7df.tar.bz2 mpv-39b9635305e84b57520be5e030d3dc3f241ba7df.tar.xz |
vo: convert some final low-hanging things to nanoseconds
Diffstat (limited to 'video/out/cocoa_common.m')
-rw-r--r-- | video/out/cocoa_common.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index a5b8e3b2f4..63427ba652 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -786,7 +786,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. - struct timespec e = mp_time_us_to_realtime(mp_time_us_add(mp_time_us(), 0.1)); + struct timespec e = mp_time_ns_to_realtime(mp_time_ns_add(mp_time_ns(), 0.1)); while (s->frame_w != width && s->frame_h != height && s->vo_ready) { if (pthread_cond_timedwait(&s->wakeup, &s->lock, &e)) break; |