1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-08 08:00:17 +00:00
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
auto_profiles.lua
console.lua
defaults.lua
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