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 beforef73814b1
, and sincef73814b1
it can also return 0.
This commit is contained in:
parent
854404a639
commit
d828652f24
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user