Commit 0d84e5b0 authored by Konstantin Pavlov's avatar Konstantin Pavlov

lua cli: don't error out on get_length if there is no input

parent 3c0ce0d3
......@@ -412,7 +412,11 @@ end
function get_time(var)
return function(name,client)
local input = vlc.object.input()
client:append(math.floor(vlc.var.get( input, var )))
if input then
client:append(math.floor(vlc.var.get( input, var )))
else
client:append("")
end
end
end
......
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