Changeset cb9d21f9ed44b9f5cf2a0cbeb9f7c6f937bb4086
- Timestamp:
- 10/08/06 21:21:25
(2 years ago)
- Author:
- Antoine Cellerier <dionoea@videolan.org>
- git-committer:
- Antoine Cellerier <dionoea@videolan.org> 1155237685 +0000
- git-parent:
[7a305d417788d1559abfb43386af6a321e95f79d]
- git-author:
- Antoine Cellerier <dionoea@videolan.org> 1155237685 +0000
- Message:
Add "enqueue" command. Original patch by Greg Farell
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2ef0df8 |
rcb9d21f |
|
| 62 | 62 | Frank Chao <frank0624 at gmail.com> - Chinese Traditional translation |
|---|
| 63 | 63 | Fumio Nakayama <endymion at ca2.so-net.ne.jp> - Japanese translation |
|---|
| | 64 | Greg Farrell <greg at gregfarell dot org> - rc interface "enqueue" command |
|---|
| 64 | 65 | Gregory Hazel <ghazel at gmail dot com> - wxWidgets fixes and improvements |
|---|
| 65 | 66 | Goetz Waschk <waschk at informatik.uni-rostock dot de> - Mandrake packages |
|---|
| ra5df65a |
rcb9d21f |
|
| 359 | 359 | var_Create( p_intf, "add", VLC_VAR_STRING | VLC_VAR_ISCOMMAND ); |
|---|
| 360 | 360 | var_AddCallback( p_intf, "add", Playlist, NULL ); |
|---|
| | 361 | var_Create( p_intf, "enqueue", VLC_VAR_STRING | VLC_VAR_ISCOMMAND ); |
|---|
| | 362 | var_AddCallback( p_intf, "enqueue", Playlist, NULL ); |
|---|
| 361 | 363 | var_Create( p_intf, "playlist", VLC_VAR_VOID | VLC_VAR_ISCOMMAND ); |
|---|
| 362 | 364 | var_AddCallback( p_intf, "playlist", Playlist, NULL ); |
|---|
| … | … | |
| 873 | 875 | msg_rc( "| "); |
|---|
| 874 | 876 | msg_rc(_("| add XYZ . . . . . . . . . . add XYZ to playlist")); |
|---|
| | 877 | msg_rc(_("| enqueue XYZ . . . . . . . queue XYZ to playlist")); |
|---|
| 875 | 878 | msg_rc(_("| playlist . . . show items currently in playlist")); |
|---|
| 876 | 879 | msg_rc(_("| play . . . . . . . . . . . . . . . . play stream")); |
|---|
| … | … | |
| 1281 | 1284 | } |
|---|
| 1282 | 1285 | } |
|---|
| | 1286 | else if( !strcmp( psz_cmd, "enqueue" ) && |
|---|
| | 1287 | newval.psz_string && *newval.psz_string ) |
|---|
| | 1288 | { |
|---|
| | 1289 | playlist_item_t *p_item = parse_MRL( p_intf, newval.psz_string ); |
|---|
| | 1290 | |
|---|
| | 1291 | if( p_item ) |
|---|
| | 1292 | { |
|---|
| | 1293 | msg_rc( "trying to enqueue %s to playlist", newval.psz_string ); |
|---|
| | 1294 | playlist_PlaylistAddInput( p_playlist, p_item, |
|---|
| | 1295 | PLAYLIST_APPEND, PLAYLIST_END ); |
|---|
| | 1296 | } |
|---|
| | 1297 | } |
|---|
| 1283 | 1298 | else if( !strcmp( psz_cmd, "playlist" ) ) |
|---|
| 1284 | 1299 | { |
|---|