mirror of https://github.com/mpv-player/mpv
test-hooks.lua: fix variable shadowing warning
This commit is contained in:
parent
c431b532b8
commit
c5c5a5a2ad
|
@ -25,8 +25,8 @@ end
|
|||
|
||||
local props = {"path", "metadata"}
|
||||
for _, name in ipairs(props) do
|
||||
mp.observe_property(name, "native", function(name, val)
|
||||
print("property '" .. name .. "' changed to '" ..
|
||||
mp.observe_property(name, "native", function(prop, val)
|
||||
print("property '" .. prop .. "' changed to '" ..
|
||||
utils.to_string(val) .. "'")
|
||||
end)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue