Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
aa0bac02
Commit
aa0bac02
authored
Aug 18, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/http.c: Implemented RPN functions playlist_move and
playlist_delete.
parent
059d8bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
modules/control/http.c
modules/control/http.c
+21
-0
No files found.
modules/control/http.c
View file @
aa0bac02
...
...
@@ -4104,6 +4104,27 @@ static void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
playlist_LockClear
(
p_sys
->
p_playlist
);
msg_Dbg
(
p_intf
,
"requested playlist empty"
);
}
else
if
(
!
strcmp
(
s
,
"playlist_delete"
)
)
{
int
i_id
=
SSPopN
(
st
,
vars
);
playlist_LockDelete
(
p_sys
->
p_playlist
,
i_id
);
msg_Dbg
(
p_intf
,
"requested playlist delete: %d"
,
i_id
);
}
else
if
(
!
strcmp
(
s
,
"playlist_move"
)
)
{
int
i_newpos
=
SSPopN
(
st
,
vars
);
int
i_pos
=
SSPopN
(
st
,
vars
);
if
(
i_pos
<
i_newpos
)
{
playlist_Move
(
p_sys
->
p_playlist
,
i_pos
,
i_newpos
+
1
);
}
else
{
playlist_Move
(
p_sys
->
p_playlist
,
i_pos
,
i_newpos
);
}
msg_Dbg
(
p_intf
,
"requested to move playlist item %d to %d"
,
i_pos
,
i_newpos
);
}
else
{
SSPush
(
st
,
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