diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-12-26 13:31:04 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-12-26 13:31:04 +0000 |
commit | be3f29cc11a1d31a4bacee16a8ca2f1a9de2caed (patch) | |
tree | b0f9cebfb3e4215df4d880a0befc6da7c4d04848 /apps/tagtree.c | |
parent | 6ee5e3849480ac6a01545f4637052b58b11463d0 (diff) | |
download | rockbox-be3f29cc11a1d31a4bacee16a8ca2f1a9de2caed.tar.gz rockbox-be3f29cc11a1d31a4bacee16a8ca2f1a9de2caed.zip |
Accept FS#6464 by Chris Taylor. Adds a "Play Next" playlist insertion
option which replaces the current playlist with the new selection but
keeps the current track queued so playback doesnt stop. (minor fixes by
me)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11842 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r-- | apps/tagtree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index d75b9eb667..d5d70ac206 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c | |||
@@ -1468,6 +1468,12 @@ static bool insert_all_playlist(struct tree_context *c, int position, bool queue | |||
1468 | return false; | 1468 | return false; |
1469 | } | 1469 | } |
1470 | 1470 | ||
1471 | if (position == PLAYLIST_REPLACE) | ||
1472 | { | ||
1473 | if (remove_all_tracks(NULL) == 0) | ||
1474 | position = PLAYLIST_INSERT_LAST; | ||
1475 | else return -1; } | ||
1476 | |||
1471 | if (position == PLAYLIST_INSERT_FIRST) | 1477 | if (position == PLAYLIST_INSERT_FIRST) |
1472 | { | 1478 | { |
1473 | from = c->filesindir - 1; | 1479 | from = c->filesindir - 1; |