[vlc-devel] commit: Misc fixes. (Antoine Cellerier )

git version control git at videolan.org
Sun Jan 18 12:20:39 CET 2009


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sun Jan 18 12:20:21 2009 +0100| [f1ea77b73692b24c7e5821d996f498096d48d8cd] | committer: Antoine Cellerier 

Misc fixes.

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

 share/lua/intf/rc.lua |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/share/lua/intf/rc.lua b/share/lua/intf/rc.lua
index 7a4316c..5492625 100644
--- a/share/lua/intf/rc.lua
+++ b/share/lua/intf/rc.lua
@@ -73,7 +73,7 @@ for k,v in pairs(env) do
     if config[k] then
         if type(env[k]) == type(config[k]) then
             env[k] = config[k]
-            vlc.msg.dbg("set environement variable `"..k.."' to "..tonumber(env[k]))
+            vlc.msg.dbg("set environement variable `"..k.."' to "..tostring(env[k]))
         else
             vlc.msg.err("environement variable `"..k.."' should be of type "..type(env[k])..". config value will be discarded.")
         end
@@ -155,6 +155,7 @@ function quit(name,client)
 end
 
 function add(name,client,arg)
+    -- TODO: par single and double quotes properly
     local f
     if name == "enqueue" then
         f = vlc.playlist.enqueue
@@ -336,8 +337,8 @@ function ret_print(foo,start,stop)
     return function(discard,client,...) client:append(start..tostring(foo(...))..stop) end
 end
 
-function get_time(var,client)
-    return function()
+function get_time(var)
+    return function(name,client)
         local input = vlc.object.input()
         client:append(math.floor(vlc.var.get( input, var )))
     end




More information about the vlc-devel mailing list