diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-09-15 02:32:13 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-29 20:48:58 +0000 |
commit | 40e0fea6ebede9452a430cfd6d39bf132e89472d (patch) | |
tree | af0db12665b610c64a98f5bc7a99a0a340b503ab /video | |
parent | f338420fd2e9ed4851f10886f0153e40f4b39d6d (diff) | |
download | mpv-40e0fea6ebede9452a430cfd6d39bf132e89472d.tar.bz2 mpv-40e0fea6ebede9452a430cfd6d39bf132e89472d.tar.xz |
timer: rename mp_add_timeout to reflect what it actually does
Diffstat (limited to 'video')
-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 0827da6fc9..a5b8e3b2f4 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_add_timeout(mp_time_us(), 0.1)); + struct timespec e = mp_time_us_to_realtime(mp_time_us_add(mp_time_us(), 0.1)); while (s->frame_w != width && s->frame_h != height && s->vo_ready) { if (pthread_cond_timedwait(&s->wakeup, &s->lock, &e)) break; |