mirror of https://github.com/mpv-player/mpv
audio-hotplug-test.lua: fix some lint warnings
Fixes: audio-hotplug-test.lua:1:7: unused variable utils audio-hotplug-test.lua:3:61: unused argument name audio-hotplug-test.lua:5:9: unused loop variable index
This commit is contained in:
parent
71d9c31394
commit
fabc92453f
|
@ -1,8 +1,6 @@
|
|||
local utils = require("mp.utils")
|
||||
|
||||
mp.observe_property("audio-device-list", "native", function(name, val)
|
||||
mp.observe_property("audio-device-list", "native", function(_, val)
|
||||
print("Audio device list changed:")
|
||||
for index, e in ipairs(val) do
|
||||
for _, e in ipairs(val) do
|
||||
print(" - '" .. e.name .. "' (" .. e.description .. ")")
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue