forked from len0rd/rockbox
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
This commit is contained in:
parent
98d5212983
commit
685356cb89
1 changed files with 3 additions and 6 deletions
|
|
@ -566,8 +566,7 @@ static int add_track_to_playlist(struct playlist_info* playlist,
|
||||||
switch (position)
|
switch (position)
|
||||||
{
|
{
|
||||||
case PLAYLIST_PREPEND:
|
case PLAYLIST_PREPEND:
|
||||||
insert_position = playlist->first_index;
|
position = insert_position = playlist->first_index;
|
||||||
flags = PLAYLIST_INSERT_TYPE_PREPEND;
|
|
||||||
break;
|
break;
|
||||||
case PLAYLIST_INSERT:
|
case PLAYLIST_INSERT:
|
||||||
/* if there are already inserted tracks then add track to end of
|
/* 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;
|
break;
|
||||||
case PLAYLIST_INSERT_LAST:
|
case PLAYLIST_INSERT_LAST:
|
||||||
if (playlist->first_index > 0)
|
if (playlist->first_index > 0)
|
||||||
insert_position = playlist->first_index;
|
position = insert_position = playlist->first_index;
|
||||||
else
|
else
|
||||||
insert_position = playlist->amount;
|
position = insert_position = playlist->amount;
|
||||||
|
|
||||||
flags = PLAYLIST_INSERT_TYPE_APPEND;
|
|
||||||
break;
|
break;
|
||||||
case PLAYLIST_INSERT_SHUFFLED:
|
case PLAYLIST_INSERT_SHUFFLED:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue