diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-09-15 02:32:13 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-29 20:48:58 +0000 |
commit | 40e0fea6ebede9452a430cfd6d39bf132e89472d (patch) | |
tree | af0db12665b610c64a98f5bc7a99a0a340b503ab /misc/dispatch.c | |
parent | f338420fd2e9ed4851f10886f0153e40f4b39d6d (diff) | |
download | mpv-40e0fea6ebede9452a430cfd6d39bf132e89472d.tar.bz2 mpv-40e0fea6ebede9452a430cfd6d39bf132e89472d.tar.xz |
timer: rename mp_add_timeout to reflect what it actually does
Diffstat (limited to 'misc/dispatch.c')
-rw-r--r-- | misc/dispatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/dispatch.c b/misc/dispatch.c index e491b2a9b0..4d24409856 100644 --- a/misc/dispatch.c +++ b/misc/dispatch.c @@ -272,7 +272,7 @@ void mp_dispatch_run(struct mp_dispatch_queue *queue, void mp_dispatch_queue_process(struct mp_dispatch_queue *queue, double timeout) { pthread_mutex_lock(&queue->lock); - queue->wait = timeout > 0 ? mp_add_timeout(mp_time_us(), timeout) : 0; + queue->wait = timeout > 0 ? mp_time_us_add(mp_time_us(), timeout) : 0; assert(!queue->in_process); // recursion not allowed queue->in_process = true; queue->in_process_thread = pthread_self(); |