1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-24 00:23:27 +00:00
mpv/player/lua
Avi Halachmi (:avih) 5b40db385a lua: idle observers: ensure timers are up-to-date
This fixes two issues, both of which resulted from the timers-wait
period not being re-calculated after idle-observers were executed:

- If timers were added from an idle observer then they could fire long
  after they were due (only when/if the next mpv event arrives).

- Idle observers don't execute in zero time, and the wait period for
  the next timer was implicitly extended by the idle observers
  execution time (because it was calculated before the idle observers).

This commit ensures that if idle-observers were executed, then the
timers wait period is re-calculated, which solves both issues.
2021-06-23 23:47:08 +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: idle observers: ensure timers are up-to-date 2021-06-23 23:47:08 +03:00
options.lua lua: windows got what users crave 2020-05-27 15:01:39 +02:00
osc.lua osc: seekbar hover/drag: display target chapter at the title 2021-06-22 18:12:29 +03:00
stats.lua stats.lua: include a filter's @label when displaying filters on page 1 2021-03-15 23:00:42 +02:00
ytdl_hook.lua ytdl_hook: improve handling of json parsing errors 2021-05-29 19:54:03 +03:00