From: Pierre Ynard Date: Thu, 8 Sep 2011 21:50:54 +0000 (+0200) Subject: cli: fix many aout/vout functions X-Git-Tag: 1.2.0-pre1~770 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5d1047b3938ea4708eaab767713992628c92bb55;p=vlc cli: fix many aout/vout functions Get rid of another vlc.object.find() call! --- diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua index 2663173ef7..b8a0b7aea1 100644 --- a/share/lua/intf/cli.lua +++ b/share/lua/intf/cli.lua @@ -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 )