mpv/player/lua
Avi Halachmi (:avih) ca6108baf4 osc.lua: avoid infinite ticks loop on idle
Before this commit, animation-end was handled at render(), however,
it's not called on idle, which resulted in state.anitype ~= nil, with
nothing to reset it during idle, which caused in an infinite tick()
loop (starts on first mouse move).

Now tick resets the animation on idle, and also, as a safety measure,
if we're past 1s after the animation deadline.

The safety measure is because the osc states are complex, and it's
easier to detect a "we really shouldn't be animating now" at tick()
itself rather than detecting the exact states where animation should
be reset. Generally, the safety mmeasure is not needed.
2021-10-03 19:52:58 +03:00
..
assdraw.lua osc: improve look of seekranges 2019-09-02 01:11:04 +03:00
auto_profiles.lua auto_profiles: fix compile_cond on lua 5.1 2020-12-08 17:29:19 +00:00
console.lua console: use wl-paste on Wayland 2020-12-14 22:43:34 +00:00
defaults.lua lua: fix timers comment (no-op) 2021-07-13 13:11:34 +03:00
options.lua lua: read_options: quote values at error messages 2021-08-10 11:00:18 +03:00
osc.lua osc.lua: avoid infinite ticks loop on idle 2021-10-03 19:52:58 +03:00
stats.lua stats.lua: typo lavfi-complex 2021-08-15 12:27:40 +03:00
ytdl_hook.lua ytdl_hook.lua: search for yt-dlp by default 2021-09-25 13:57:36 +02:00