forked from len0rd/rockbox
Only maintain the last insert position after the playlist has started. Fixes B#6004.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10955 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b0a6015537
commit
16c55277f7
1 changed files with 3 additions and 2 deletions
|
@ -599,7 +599,8 @@ static int add_track_to_playlist(struct playlist_info* playlist,
|
||||||
else
|
else
|
||||||
position = insert_position = 0;
|
position = insert_position = 0;
|
||||||
|
|
||||||
playlist->last_insert_pos = position;
|
if (playlist->started)
|
||||||
|
playlist->last_insert_pos = position;
|
||||||
break;
|
break;
|
||||||
case PLAYLIST_INSERT_FIRST:
|
case PLAYLIST_INSERT_FIRST:
|
||||||
if (playlist->amount > 0)
|
if (playlist->amount > 0)
|
||||||
|
@ -607,7 +608,7 @@ static int add_track_to_playlist(struct playlist_info* playlist,
|
||||||
else
|
else
|
||||||
position = insert_position = 0;
|
position = insert_position = 0;
|
||||||
|
|
||||||
if (playlist->last_insert_pos < 0)
|
if (playlist->last_insert_pos < 0 && playlist->started)
|
||||||
playlist->last_insert_pos = position;
|
playlist->last_insert_pos = position;
|
||||||
break;
|
break;
|
||||||
case PLAYLIST_INSERT_LAST:
|
case PLAYLIST_INSERT_LAST:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue