Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9583bbb8
Commit
9583bbb8
authored
Aug 01, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lock/Unlock the http control module.
parent
36f0edc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
modules/control/http/rpn.c
modules/control/http/rpn.c
+12
-10
No files found.
modules/control/http/rpn.c
View file @
9583bbb8
...
...
@@ -495,31 +495,33 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
int
i_id
=
SSPopN
(
st
,
vars
);
int
i_ret
;
vlc_object_lock
(
p_sys
->
p_playlist
);
i_ret
=
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_VIEWPLAY
,
true
,
NULL
,
pl_Locked
,
NULL
,
playlist_ItemGetById
(
p_sys
->
p_playlist
,
i_id
,
true
)
);
i_id
,
pl_Locked
)
);
vlc_object_unlock
(
p_sys
->
p_playlist
);
msg_Dbg
(
p_intf
,
"requested playlist item: %i"
,
i_id
);
SSPushN
(
st
,
i_ret
);
}
else
if
(
!
strcmp
(
s
,
"vlc_stop"
)
)
{
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_STOP
,
true
);
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_STOP
,
pl_Unlocked
);
msg_Dbg
(
p_intf
,
"requested playlist stop"
);
}
else
if
(
!
strcmp
(
s
,
"vlc_pause"
)
)
{
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_PAUSE
,
true
);
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_PAUSE
,
pl_Unlocked
);
msg_Dbg
(
p_intf
,
"requested playlist pause"
);
}
else
if
(
!
strcmp
(
s
,
"vlc_next"
)
)
{
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_SKIP
,
true
,
1
);
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_SKIP
,
pl_Unlocked
,
1
);
msg_Dbg
(
p_intf
,
"requested playlist next"
);
}
else
if
(
!
strcmp
(
s
,
"vlc_previous"
)
)
{
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_SKIP
,
true
,
-
1
);
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_SKIP
,
pl_Unlocked
,
-
1
);
msg_Dbg
(
p_intf
,
"requested playlist previous"
);
}
else
if
(
!
strcmp
(
s
,
"vlc_seek"
)
)
...
...
@@ -852,7 +854,7 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
{
i_ret
=
playlist_AddInput
(
p_sys
->
p_playlist
,
p_input
,
PLAYLIST_APPEND
,
PLAYLIST_END
,
true
,
false
);
pl_Unlocked
);
vlc_gc_decref
(
p_input
);
if
(
i_ret
==
VLC_SUCCESS
)
msg_Dbg
(
p_intf
,
"requested mrl add: %s"
,
mrl
);
...
...
@@ -867,18 +869,18 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
}
else
if
(
!
strcmp
(
s
,
"playlist_empty"
)
)
{
playlist_Clear
(
p_sys
->
p_playlist
,
false
);
playlist_Clear
(
p_sys
->
p_playlist
,
pl_Unlocked
);
msg_Dbg
(
p_intf
,
"requested playlist empty"
);
}
else
if
(
!
strcmp
(
s
,
"playlist_delete"
)
)
{
int
i_id
=
SSPopN
(
st
,
vars
);
playlist_item_t
*
p_item
=
playlist_ItemGetById
(
p_sys
->
p_playlist
,
i_id
,
false
);
i_id
,
pl_Unlocked
);
if
(
p_item
)
{
playlist_DeleteFromInput
(
p_sys
->
p_playlist
,
p_item
->
p_input
->
i_id
,
false
);
p_item
->
p_input
->
i_id
,
pl_Unlocked
);
msg_Dbg
(
p_intf
,
"requested playlist delete: %d"
,
i_id
);
}
else
...
...
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