[vlc-commits] cli: fix many aout/vout functions

Pierre Ynard git at videolan.org
Thu Sep 8 23:51:37 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Sep  8 23:50:54 2011 +0200| [5d1047b3938ea4708eaab767713992628c92bb55] | committer: Pierre Ynard

cli: fix many aout/vout functions

Get rid of another vlc.object.find() call!

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d1047b3938ea4708eaab767713992628c92bb55
---

 share/lua/intf/cli.lua |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua
index 2663173..b8a0b7a 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 )



More information about the vlc-commits mailing list