]> git.sesse.net Git - vlc/commitdiff
Misc lua interface changes.
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 27 Dec 2009 21:36:10 +0000 (22:36 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 27 Dec 2009 21:36:10 +0000 (22:36 +0100)
share/lua/intf/dummy.lua
share/lua/intf/http.lua
share/lua/intf/rc.lua

index 1b64f21264fec679b2e4a07b05dc0ae1bc079794..2f217031fc7f9efa624736fcf9d824b3c213707d 100644 (file)
@@ -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)
index 054376517d4d0fffc464c8c3d23b8f82ff665bc4..0d478ae664689d248ad5506f610113854f5beb33 100644 (file)
@@ -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)
index 1a105662de5da294e3db31ea7ee5548debb6478f..c02d0a917252906c8a1e7c998e57cb014b446ad7 100644 (file)
@@ -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