summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-09-15 01:39:35 +0200
committerDudemanguy <random342@airmail.cc>2023-09-29 20:48:58 +0000
commitda4c4d2ebd2473677045b85f923cb14349b1e60d (patch)
tree9c664eae20220d598bb3ce336a5d7c7cbe3973e9 /video/out/vo.c
parent381386330bd3663055250e6883f1c0c1e4069eec (diff)
downloadmpv-da4c4d2ebd2473677045b85f923cb14349b1e60d.tar.bz2
mpv-da4c4d2ebd2473677045b85f923cb14349b1e60d.tar.xz
timer: rename mp_time_us_to_timespec to reflect what it actually does
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 7f57df2fe1..23f75e72d5 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -719,7 +719,7 @@ void vo_wait_default(struct vo *vo, int64_t until_time)
pthread_mutex_lock(&in->lock);
if (!in->need_wakeup) {
- struct timespec ts = mp_time_us_to_timespec(until_time);
+ struct timespec ts = mp_time_us_to_realtime(until_time);
pthread_cond_timedwait(&in->wakeup, &in->lock, &ts);
}
pthread_mutex_unlock(&in->lock);
@@ -867,7 +867,7 @@ void vo_wait_frame(struct vo *vo)
static void wait_until(struct vo *vo, int64_t target)
{
struct vo_internal *in = vo->in;
- struct timespec ts = mp_time_us_to_timespec(target);
+ struct timespec ts = mp_time_us_to_realtime(target);
pthread_mutex_lock(&in->lock);
while (target > mp_time_us()) {
if (in->queued_events & VO_EVENT_LIVE_RESIZING)