mirror of https://github.com/mpv-player/mpv
observe-all.lua: fix some lint warnings
This commit is contained in:
parent
16c19445bc
commit
50c4b2cd4c
|
@ -7,16 +7,16 @@
|
||||||
local utils = require("mp.utils")
|
local utils = require("mp.utils")
|
||||||
|
|
||||||
function observe(name)
|
function observe(name)
|
||||||
mp.observe_property(name, "native", function(name, val)
|
mp.observe_property(name, "native", function(prop, val)
|
||||||
print("property '" .. name .. "' changed to '" ..
|
print("property '" .. prop .. "' changed to '" ..
|
||||||
utils.to_string(val) .. "'")
|
utils.to_string(val) .. "'")
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
for i,name in ipairs(mp.get_property_native("property-list")) do
|
for _, name in ipairs(mp.get_property_native("property-list")) do
|
||||||
observe(name)
|
observe(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
for i,name in ipairs(mp.get_property_native("options")) do
|
for _, name in ipairs(mp.get_property_native("options")) do
|
||||||
observe("options/" .. name)
|
observe("options/" .. name)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue