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
79978963
Commit
79978963
authored
Jan 25, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oldrc: fix "playlist" and "snapshot"
parent
762a3d7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
modules/control/rc.c
modules/control/rc.c
+9
-3
No files found.
modules/control/rc.c
View file @
79978963
...
@@ -624,9 +624,12 @@ static void *Run( void *data )
...
@@ -624,9 +624,12 @@ static void *Run( void *data )
{
{
vlc_value_t
val
;
vlc_value_t
val
;
int
i_ret
;
int
i_ret
;
val
.
psz_string
=
psz_arg
;
val
.
psz_string
=
psz_arg
;
i_ret
=
var_Set
(
p_intf
,
psz_cmd
,
val
);
if
((
var_Type
(
p_intf
,
psz_cmd
)
&
VLC_VAR_CLASS
)
==
VLC_VAR_VOID
)
i_ret
=
var_TriggerCallback
(
p_intf
,
psz_cmd
);
else
i_ret
=
var_Set
(
p_intf
,
psz_cmd
,
val
);
msg_rc
(
"%s: returned %i (%s)"
,
msg_rc
(
"%s: returned %i (%s)"
,
psz_cmd
,
i_ret
,
vlc_error
(
i_ret
)
);
psz_cmd
,
i_ret
,
vlc_error
(
i_ret
)
);
}
}
...
@@ -639,7 +642,10 @@ static void *Run( void *data )
...
@@ -639,7 +642,10 @@ static void *Run( void *data )
val
.
psz_string
=
psz_arg
;
val
.
psz_string
=
psz_arg
;
/* FIXME: it's a global command, but we should pass the
/* FIXME: it's a global command, but we should pass the
* local object as an argument, not p_intf->p_libvlc. */
* local object as an argument, not p_intf->p_libvlc. */
i_ret
=
var_Set
(
p_intf
->
p_libvlc
,
psz_cmd
,
val
);
if
((
var_Type
(
p_intf
->
p_libvlc
,
psz_cmd
)
&
VLC_VAR_CLASS
)
==
VLC_VAR_VOID
)
i_ret
=
var_TriggerCallback
(
p_intf
,
psz_cmd
);
else
i_ret
=
var_Set
(
p_intf
->
p_libvlc
,
psz_cmd
,
val
);
if
(
i_ret
!=
0
)
if
(
i_ret
!=
0
)
{
{
msg_rc
(
"%s: returned %i (%s)"
,
msg_rc
(
"%s: returned %i (%s)"
,
...
...
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