Skip to content
Snippets Groups Projects
Commit 51d53266 authored by Pierre Ynard's avatar Pierre Ynard
Browse files

cli.lua: skip unknown VLM commands

Fixes #5396
parent 9b4e85b6
No related branches found
No related tags found
No related merge requests found
......@@ -658,8 +658,13 @@ function call_vlm_command(cmd,client,arg)
cmd = cmd.." "..arg
end
local message, vlc_err = vlm:execute_command( cmd )
-- the VLM doesn't let us know if the command exists,
-- so we need this ugly hack
if vlc_err ~= 0 and message.value == "Unknown VLM command" then
return vlc_err
end
vlm_message_to_string( client, message )
return vlc_err
return 0
end
function call_libvlc_command(cmd,client,arg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment