Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
51d53266
Commit
51d53266
authored
13 years ago
by
Pierre Ynard
Browse files
Options
Downloads
Patches
Plain Diff
cli.lua: skip unknown VLM commands
Fixes
#5396
parent
9b4e85b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/lua/intf/cli.lua
+6
-1
6 additions, 1 deletion
share/lua/intf/cli.lua
with
6 additions
and
1 deletion
share/lua/intf/cli.lua
+
6
−
1
View file @
51d53266
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Migration Bot
@MigrationBot
mentioned in issue
#5396 (closed)
·
4 years ago
mentioned in issue
#5396 (closed)
mentioned in issue #5396
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment