summaryrefslogtreecommitdiffstats
path: root/player
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 /player
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 'player')
-rw-r--r--player/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/client.c b/player/client.c
index 2a581a6bda..0f3a99f3f6 100644
--- a/player/client.c
+++ b/player/client.c
@@ -363,7 +363,7 @@ static int wait_wakeup(struct mpv_handle *ctx, int64_t end)
pthread_mutex_unlock(&ctx->lock);
pthread_mutex_lock(&ctx->wakeup_lock);
if (!ctx->need_wakeup) {
- struct timespec ts = mp_time_us_to_timespec(end);
+ struct timespec ts = mp_time_us_to_realtime(end);
r = pthread_cond_timedwait(&ctx->wakeup, &ctx->wakeup_lock, &ts);
}
if (r == 0)