Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f271a2ef
Commit
f271a2ef
authored
Mar 15, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luarc: fix interface crash on object command with missing arguments
parent
e3f3421d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
share/lua/intf/rc.lua
share/lua/intf/rc.lua
+9
-2
No files found.
share/lua/intf/rc.lua
View file @
f271a2ef
...
@@ -650,10 +650,17 @@ function call_libvlc_command(cmd,client,arg)
...
@@ -650,10 +650,17 @@ function call_libvlc_command(cmd,client,arg)
end
end
function
call_object_command
(
cmd
,
client
,
arg
)
function
call_object_command
(
cmd
,
client
,
arg
)
local
var
,
val
=
split_input
(
arg
)
local
var
,
val
if
arg
~=
nil
then
var
,
val
=
split_input
(
arg
)
end
local
ok
,
vlcmsg
,
vlcerr
,
vlcerrmsg
=
pcall
(
vlc
.
var
.
command
,
cmd
,
var
,
val
)
local
ok
,
vlcmsg
,
vlcerr
,
vlcerrmsg
=
pcall
(
vlc
.
var
.
command
,
cmd
,
var
,
val
)
if
not
ok
then
if
not
ok
then
client
:
append
(
"Error in `"
..
cmd
..
" "
..
var
..
" "
..
val
..
"' "
..
vlcmsg
)
-- when pcall fails the 2nd arg is the error message
local
v
=
var
or
""
if
v
~=
""
then
v
=
" "
..
v
end
local
v2
=
val
or
""
if
v2
~=
""
then
v2
=
" "
..
v2
end
client
:
append
(
"Error in `"
..
cmd
..
v
..
v2
..
"' "
..
vlcmsg
)
-- when pcall fails the 2nd arg is the error message
end
end
if
vlcmsg
~=
""
then
if
vlcmsg
~=
""
then
client
:
append
(
vlcmsg
)
client
:
append
(
vlcmsg
)
...
...
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