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
cb9d21f9
Commit
cb9d21f9
authored
Aug 10, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "enqueue" command. Original patch by Greg Farell
parent
7a305d41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
THANKS
THANKS
+1
-0
modules/control/rc.c
modules/control/rc.c
+15
-0
No files found.
THANKS
View file @
cb9d21f9
...
...
@@ -61,6 +61,7 @@ Eurodata Computer Club <retron.info> - VLC icon design (v0.8.4)
François Seingier <francois.seingier at club-internet.fr> - TTL setting in the wx stream output dialog
Frank Chao <frank0624 at gmail.com> - Chinese Traditional translation
Fumio Nakayama <endymion at ca2.so-net.ne.jp> - Japanese translation
Greg Farrell <greg at gregfarell dot org> - rc interface "enqueue" command
Gregory Hazel <ghazel at gmail dot com> - wxWidgets fixes and improvements
Goetz Waschk <waschk at informatik.uni-rostock dot de> - Mandrake packages
Haakon Meland Eriksen - Norwegian translation
...
...
modules/control/rc.c
View file @
cb9d21f9
...
...
@@ -358,6 +358,8 @@ static void RegisterCallbacks( intf_thread_t *p_intf )
var_Create
(
p_intf
,
"add"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"add"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"enqueue"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"enqueue"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"playlist"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"playlist"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"sort"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
...
...
@@ -872,6 +874,7 @@ static void Help( intf_thread_t *p_intf, vlc_bool_t b_longhelp)
msg_rc
(
_
(
"+----[ Remote control commands ]"
));
msg_rc
(
"| "
);
msg_rc
(
_
(
"| add XYZ . . . . . . . . . . add XYZ to playlist"
));
msg_rc
(
_
(
"| enqueue XYZ . . . . . . . queue XYZ to playlist"
));
msg_rc
(
_
(
"| playlist . . . show items currently in playlist"
));
msg_rc
(
_
(
"| play . . . . . . . . . . . . . . . . play stream"
));
msg_rc
(
_
(
"| stop . . . . . . . . . . . . . . . . stop stream"
));
...
...
@@ -1280,6 +1283,18 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
PLAYLIST_GO
|
PLAYLIST_APPEND
,
PLAYLIST_END
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"enqueue"
)
&&
newval
.
psz_string
&&
*
newval
.
psz_string
)
{
playlist_item_t
*
p_item
=
parse_MRL
(
p_intf
,
newval
.
psz_string
);
if
(
p_item
)
{
msg_rc
(
"trying to enqueue %s to playlist"
,
newval
.
psz_string
);
playlist_PlaylistAddInput
(
p_playlist
,
p_item
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"playlist"
)
)
{
msg_Dbg
(
p_playlist
,
"Dumping category"
);
...
...
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