summaryrefslogtreecommitdiffstats
path: root/player/configfiles.c
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2021-06-22 16:06:36 +0300
committeravih <avih@users.noreply.github.com>2021-06-23 23:47:08 +0300
commit5b40db385a7b4239e2e78d67f1098209c8592202 (patch)
treeda172c718693534066529c460621509e9eb0ee52 /player/configfiles.c
parentf73814b180ad4616ac1d21a729eb9dda4af040cc (diff)
downloadmpv-5b40db385a7b4239e2e78d67f1098209c8592202.tar.bz2
mpv-5b40db385a7b4239e2e78d67f1098209c8592202.tar.xz
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.
Diffstat (limited to 'player/configfiles.c')
0 files changed, 0 insertions, 0 deletions