In the current lua vlm implementation, messages can have value xor
children but not both. But the "show media" command gives media a
value : ( %d broadcast - %d vod ) and children (if any). (cf
src/input/vlmshell.c:1502)
Signed-off-by: Rémi Duraffort <ivoire@videolan.org>
}
lua_setfield( L, -2, "children" );
}
- else
+ if ( message->psz_value )
{
lua_pushstring( L, message->psz_value );
lua_setfield( L, -2, "value" );
local prefix = prefix or ""
if message.value then
client:append(prefix .. message.name .. " : " .. message.value)
- return
else
client:append(prefix .. message.name)
- if message.children then
- for i,c in ipairs(message.children) do
- vlm_message_to_string(client,c,prefix.." ")
- end
+ end
+ if message.children then
+ for i,c in ipairs(message.children) do
+ vlm_message_to_string(client,c,prefix.." ")
end
- return
end
end