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
60acd31a
Commit
60acd31a
authored
Oct 24, 2005
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a "clear" command to empty the playlist (someone asked for it)
parent
54c3c6a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/control/rc.c
modules/control/rc.c
+10
-0
No files found.
modules/control/rc.c
View file @
60acd31a
...
...
@@ -373,6 +373,8 @@ static void RegisterCallbacks( intf_thread_t *p_intf )
var_AddCallback
(
p_intf
,
"play"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"stop"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"stop"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"clear"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"clear"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"prev"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"prev"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"next"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
...
...
@@ -877,6 +879,7 @@ static void Help( intf_thread_t *p_intf, vlc_bool_t b_longhelp)
msg_rc
(
_
(
"| next . . . . . . . . . . . . next playlist item"
));
msg_rc
(
_
(
"| prev . . . . . . . . . . previous playlist item"
));
msg_rc
(
_
(
"| goto . . . . . . . . . . . . goto item at index"
));
msg_rc
(
_
(
"| clear . . . . . . . . . . . clear the playlist"
));
msg_rc
(
_
(
"| status . . . . . . . . . current playlist status"
));
msg_rc
(
_
(
"| title [X] . . . . set/get title in current item"
));
msg_rc
(
_
(
"| title_n . . . . . . next title in current item"
));
...
...
@@ -1268,6 +1271,13 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
{
playlist_Stop
(
p_playlist
);
}
else
if
(
!
strcmp
(
psz_cmd
,
"clear"
)
)
{
playlist_Stop
(
p_playlist
);
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
playlist_Clear
(
p_playlist
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
else
if
(
!
strcmp
(
psz_cmd
,
"add"
)
&&
newval
.
psz_string
&&
*
newval
.
psz_string
)
{
...
...
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