summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-09-15 02:32:13 +0200
committerDudemanguy <random342@airmail.cc>2023-09-29 20:48:58 +0000
commit40e0fea6ebede9452a430cfd6d39bf132e89472d (patch)
treeaf0db12665b610c64a98f5bc7a99a0a340b503ab /video
parentf338420fd2e9ed4851f10886f0153e40f4b39d6d (diff)
downloadmpv-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.m2
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;