Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
e1f0bc34
Commit
e1f0bc34
authored
Apr 23, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua RC: remove generic object commands (never really worked)
Luckily the more useful libvlc commands do work.
parent
a0d59512
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
share/lua/intf/cli.lua
share/lua/intf/cli.lua
+0
-20
No files found.
share/lua/intf/cli.lua
View file @
e1f0bc34
...
...
@@ -680,32 +680,12 @@ function call_libvlc_command(cmd,client,arg)
return
vlcerr
end
function
call_object_command
(
cmd
,
client
,
arg
)
local
var
,
val
if
arg
~=
nil
then
var
,
val
=
split_input
(
arg
)
end
local
ok
,
vlcmsg
,
vlcerr
=
pcall
(
vlc
.
var
.
command
,
cmd
,
var
,
val
)
if
not
ok
then
local
v
=
var
and
" "
..
var
or
""
local
v2
=
val
and
" "
..
val
or
""
client
:
append
(
"Error in `"
..
cmd
..
v
..
v2
..
"' "
..
vlcmsg
)
-- when pcall fails the 2nd arg is the error message
end
if
vlcmsg
~=
""
then
client
:
append
(
vlcmsg
)
end
return
vlcerr
end
function
client_command
(
client
)
local
cmd
,
arg
=
split_input
(
client
.
buffer
)
client
.
buffer
=
""
if
commands
[
cmd
]
then
call_command
(
cmd
,
client
,
arg
)
elseif
string.sub
(
cmd
,
0
,
1
)
==
'@'
and
call_object_command
(
string.sub
(
cmd
,
2
,
#
cmd
),
client
,
arg
)
==
0
then
--
elseif
call_vlm_command
(
cmd
,
client
,
arg
)
==
0
then
--
elseif
client
.
type
==
host
.
client_type
.
stdio
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment