diff options
author | Dudemanguy <random342@airmail.cc> | 2023-10-11 14:32:48 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-16 15:38:59 +0000 |
commit | 9ac0085031aff86a9705514be270842f046dc002 (patch) | |
tree | 60fc8c9b7635bcd387750ee2c919741905f8b17d /player | |
parent | 0fd8f0b3c10f20c8026d3ade5d2b075fa67ef90c (diff) | |
download | mpv-9ac0085031aff86a9705514be270842f046dc002.tar.bz2 mpv-9ac0085031aff86a9705514be270842f046dc002.tar.xz |
dispatch: change mp_dispatch_queue_process timer to nanoseconds
The playloop is the only thing that adjusts the timeout with a value
other than 0, so nothing else needs to be changed.
Diffstat (limited to 'player')
-rw-r--r-- | player/playloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c index eb42a3131c..60596da76d 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -75,7 +75,7 @@ void mp_set_timeout(struct MPContext *mpctx, double sleeptime) { if (mpctx->sleeptime > sleeptime) { mpctx->sleeptime = sleeptime; - int64_t abstime = mp_time_us_add(mp_time_us(), sleeptime); + int64_t abstime = mp_time_ns_add(mp_time_ns(), sleeptime); mp_dispatch_adjust_timeout(mpctx->dispatch, abstime); } } |