summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2006-06-12 23:06:51 +0000
committerHardeep Sidhu <dyp@pobox.com>2006-06-12 23:06:51 +0000
commit685356cb89c8044a6fd073d11a9f0e160a0fe129 (patch)
tree2bbaef17c403e704dbaff4dacecc4dfcb49e3f90 /apps
parent98d521298332b494754a3cb5a2db921505c90dab (diff)
downloadrockbox-685356cb89c8044a6fd073d11a9f0e160a0fe129.tar.gz
rockbox-685356cb89c8044a6fd073d11a9f0e160a0fe129.zip
Store playlist index for prepended/appended tracks in control file. Fixes resume problem with these tracks and insert shuffled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10115 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 47bf6a9c88..93293d75ed 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -566,8 +566,7 @@ static int add_track_to_playlist(struct playlist_info* playlist,
switch (position)
{
case PLAYLIST_PREPEND:
- insert_position = playlist->first_index;
- flags = PLAYLIST_INSERT_TYPE_PREPEND;
+ position = insert_position = playlist->first_index;
break;
case PLAYLIST_INSERT:
/* if there are already inserted tracks then add track to end of
@@ -595,11 +594,9 @@ static int add_track_to_playlist(struct playlist_info* playlist,
break;
case PLAYLIST_INSERT_LAST:
if (playlist->first_index > 0)
- insert_position = playlist->first_index;
+ position = insert_position = playlist->first_index;
else
- insert_position = playlist->amount;
-
- flags = PLAYLIST_INSERT_TYPE_APPEND;
+ position = insert_position = playlist->amount;
break;
case PLAYLIST_INSERT_SHUFFLED:
{