Commit 5d1047b3 authored by Pierre Ynard's avatar Pierre Ynard

cli: fix many aout/vout functions

Get rid of another vlc.object.find() call!
parent c00f35b1
......@@ -472,7 +472,14 @@ end
function listvalue(obj,var)
return function(client,value)
local o = vlc.object.find(nil,obj,"anywhere")
local o
if obj == "input" then
o = vlc.object.input()
elseif obj == "aout" then
o = vlc.object.aout()
elseif obj == "vout" then
o = vlc.object.vout()
end
if not o then return end
if value then
vlc.var.set( o, var, value )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment