Commit 2205d8f8 authored by Rémi Duraffort's avatar Rémi Duraffort

lua_rc: fix 'stats' and 'info' commands.

parent 489f60b1
......@@ -313,7 +313,8 @@ function help(name,client,arg)
end
function input_info(name,client)
local item = vlc.item()
local item = vlc.input.item()
if(item == nil) then return end
local categories = item:info()
for cat, infos in pairs(categories) do
client:append("+----[ "..cat.." ]")
......@@ -327,7 +328,8 @@ function input_info(name,client)
end
function stats(name,client)
local item = vlc.item()
local item = vlc.input.item()
if(item == nil) then return end
local stats_tab = item:stats()
client:append("+----[ begin of statistical info")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment