1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00

lua: fix timers comment (no-op)

process_timers() doesn't return an absolute time. It returned delta>0
or nil before f73814b1 , and since f73814b1 it can also return 0.
This commit is contained in:
Avi Halachmi (:avih) 2021-07-13 13:11:32 +03:00
parent 854404a639
commit d828652f24

View File

@ -330,8 +330,9 @@ function mp.get_next_timeout()
return timer.next_deadline - now
end
-- Run timers that have met their deadline.
-- Return: next absolute time a timer expires as number, or nil if no timers
-- Run timers that have met their deadline at the time of invocation.
-- Return: time>0 in seconds till the next due timer, 0 if there are due timers
-- (aborted to avoid infinite loop), or nil if no timers
local function process_timers()
local t0 = nil
while true do