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
fd56030a
Commit
fd56030a
authored
Mar 15, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luarc: simplify
parent
5e35aa8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
share/lua/intf/rc.lua
share/lua/intf/rc.lua
+1
-2
No files found.
share/lua/intf/rc.lua
View file @
fd56030a
...
@@ -608,8 +608,7 @@ end
...
@@ -608,8 +608,7 @@ end
function
call_libvlc_command
(
cmd
,
client
,
arg
)
function
call_libvlc_command
(
cmd
,
client
,
arg
)
local
ok
,
vlcerr
=
pcall
(
vlc
.
var
.
libvlc_command
,
cmd
,
arg
)
local
ok
,
vlcerr
=
pcall
(
vlc
.
var
.
libvlc_command
,
cmd
,
arg
)
if
not
ok
then
if
not
ok
then
local
a
=
arg
or
""
local
a
=
arg
and
" "
..
arg
or
""
if
a
~=
""
then
a
=
" "
..
a
end
client
:
append
(
"Error in `"
..
cmd
..
a
..
"' "
..
vlcerr
)
-- when pcall fails, the 2nd arg is the error message.
client
:
append
(
"Error in `"
..
cmd
..
a
..
"' "
..
vlcerr
)
-- when pcall fails, the 2nd arg is the error message.
end
end
return
vlcerr
return
vlcerr
...
...
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