[vlc-devel] commit: Misc lua interface changes. (Antoine Cellerier )

git version control git at videolan.org
Sun Dec 27 23:19:46 CET 2009


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sun Dec 27 22:36:10 2009 +0100| [60a57b8367661ebfffdf6e88e6e1965b1ed7878f] | committer: Antoine Cellerier 

Misc lua interface changes.

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

 share/lua/intf/dummy.lua |    3 ++-
 share/lua/intf/http.lua  |    2 +-
 share/lua/intf/rc.lua    |    2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/share/lua/intf/dummy.lua b/share/lua/intf/dummy.lua
index 1b64f21..2f21703 100644
--- a/share/lua/intf/dummy.lua
+++ b/share/lua/intf/dummy.lua
@@ -5,7 +5,8 @@ This is the `dummy' VLC Lua interface module.
 Please specify a VLC Lua interface to load with the --lua-intf option.
 VLC Lua interface modules include: `rc', `telnet' and `http'.
 For example: vlc -I lua --lua-intf rc
-You can also use the alternate syntax: vlc -I "lua{intf=rc}"]]
+You can also use the alternate syntax: vlc -I "lua{intf=rc}"
+See share/lua/intf/README.txt for more information about lua interface modules.]]
 
 for line in string.gmatch(msg,"([^\n]+)\n*") do
     vlc.msg.err(line)
diff --git a/share/lua/intf/http.lua b/share/lua/intf/http.lua
index 0543765..0d478ae 100644
--- a/share/lua/intf/http.lua
+++ b/share/lua/intf/http.lua
@@ -220,7 +220,7 @@ end
 
 function parse_url_request(request)
     if not request then return {} end
-    t = {}
+    local t = {}
     for k,v in string.gmatch(request,"([^=&]+)=?([^=&]*)") do
         local k_ = vlc.strings.decode_uri(k)
         local v_ = vlc.strings.decode_uri(v)
diff --git a/share/lua/intf/rc.lua b/share/lua/intf/rc.lua
index 1a10566..c02d0a9 100644
--- a/share/lua/intf/rc.lua
+++ b/share/lua/intf/rc.lua
@@ -87,7 +87,7 @@ function set_env(name,client,value)
     if value then
         local var,val = split_input(value)
         if val then
-            s = string.gsub(val,"\"(.*)\"","%1")
+            local s = string.gsub(val,"\"(.*)\"","%1")
             if type(client.env[var])==type(1) then
                 client.env[var] = tonumber(s)
             else




More information about the vlc-devel mailing list