Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
024d9ccd
Commit
024d9ccd
authored
Mar 15, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luarc: simplify
parent
727b2498
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
share/lua/intf/rc.lua
share/lua/intf/rc.lua
+3
-6
No files found.
share/lua/intf/rc.lua
View file @
024d9ccd
...
...
@@ -600,8 +600,7 @@ function call_command(cmd,client,arg)
ok
,
msg
=
pcall
(
commands
[
cmd
].
func
,
cmd
,
client
)
end
if
not
ok
then
local
a
=
arg
or
""
if
a
~=
""
then
a
=
" "
..
a
end
local
a
=
arg
and
" "
..
arg
or
""
client
:
append
(
"Error in `"
..
cmd
..
a
..
"' "
..
msg
)
end
end
...
...
@@ -623,10 +622,8 @@ function call_object_command(cmd,client,arg)
end
local
ok
,
vlcmsg
,
vlcerr
=
pcall
(
vlc
.
var
.
command
,
cmd
,
var
,
val
)
if
not
ok
then
local
v
=
var
or
""
if
v
~=
""
then
v
=
" "
..
v
end
local
v2
=
val
or
""
if
v2
~=
""
then
v2
=
" "
..
v2
end
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
...
...
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