mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
stats: remove check for lua timer function
We now require a modern mpv version. `property_aliases` is kept for future use.
This commit is contained in:
parent
1691b978cf
commit
c04ff9dce0
@ -554,14 +554,6 @@ end
|
||||
timer = mp.add_periodic_timer(o.redraw_delay, function() print_stats(o.redraw_delay + 1) end)
|
||||
timer:kill()
|
||||
|
||||
-- Check if timer has required method
|
||||
if not pcall(function() timer:is_enabled() end) then
|
||||
local txt = "Stats.lua: your version of mpv does not possess required functionality. \nPlease upgrade mpv or use an older version of this script."
|
||||
print(txt)
|
||||
mp.osd_message(txt, 15)
|
||||
return
|
||||
end
|
||||
|
||||
-- Single invocation key binding
|
||||
mp.add_key_binding(o.key_oneshot, "display_stats", print_stats, {repeatable=true})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user