[vlc-commits] Lua RC: remove generic object commands (never really worked)

Rémi Denis-Courmont git at videolan.org
Tue Apr 23 21:52:29 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 23 22:38:19 2013 +0300| [e1f0bc34bf458270c5f654dc72c53cab925a937c] | committer: Rémi Denis-Courmont

Lua RC: remove generic object commands (never really worked)

Luckily the more useful libvlc commands do work.

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

 share/lua/intf/cli.lua |   20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua
index 3cd48f9..72c971f 100644
--- a/share/lua/intf/cli.lua
+++ b/share/lua/intf/cli.lua
@@ -680,32 +680,12 @@ function call_libvlc_command(cmd,client,arg)
     return vlcerr
 end
 
-function call_object_command(cmd,client,arg)
-    local var, val
-    if arg ~= nil then
-        var, val = split_input(arg)
-    end
-    local ok, vlcmsg, vlcerr = pcall( vlc.var.command, cmd, var, val )
-    if not ok then
-        local v = var and " "..var or ""
-        local v2 = val and " "..val or ""
-        client:append("Error in `"..cmd..v..v2.."' ".. vlcmsg) -- when pcall fails the 2nd arg is the error message
-    end
-    if vlcmsg ~= "" then
-        client:append(vlcmsg)
-    end
-    return vlcerr
-end
-
 function client_command( client )
     local cmd,arg = split_input(client.buffer)
     client.buffer = ""
 
     if commands[cmd] then
         call_command(cmd,client,arg)
-    elseif string.sub(cmd,0,1)=='@'
-    and call_object_command(string.sub(cmd,2,#cmd),client,arg) == 0 then
-        --
     elseif call_vlm_command(cmd,client,arg) == 0 then
         --
     elseif client.type == host.client_type.stdio



More information about the vlc-commits mailing list