diff options
Diffstat (limited to 'player/client.c')
-rw-r--r-- | player/client.c | 2 |
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) |