diff options
| author | Hardeep Sidhu <dyp@pobox.com> | 2006-09-15 23:37:07 +0000 |
|---|---|---|
| committer | Hardeep Sidhu <dyp@pobox.com> | 2006-09-15 23:37:07 +0000 |
| commit | 16c55277f7b3580f42f7345d4ef2919b98ae6cda (patch) | |
| tree | 028c51730fce9fbe043e6d348737e9e8014e9d98 | |
| parent | b0a601553759b9b19da84f02f94d3b373e3cc8d7 (diff) | |
| download | rockbox-16c55277f7b3580f42f7345d4ef2919b98ae6cda.zip rockbox-16c55277f7b3580f42f7345d4ef2919b98ae6cda.tar.gz rockbox-16c55277f7b3580f42f7345d4ef2919b98ae6cda.tar.bz2 rockbox-16c55277f7b3580f42f7345d4ef2919b98ae6cda.tar.xz | |
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
| -rw-r--r-- | apps/playlist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 6c37a9a..a75e32a 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -599,7 +599,8 @@ static int add_track_to_playlist(struct playlist_info* playlist, else position = insert_position = 0; - playlist->last_insert_pos = position; + if (playlist->started) + playlist->last_insert_pos = position; break; case PLAYLIST_INSERT_FIRST: if (playlist->amount > 0) @@ -607,7 +608,7 @@ static int add_track_to_playlist(struct playlist_info* playlist, else position = insert_position = 0; - if (playlist->last_insert_pos < 0) + if (playlist->last_insert_pos < 0 && playlist->started) playlist->last_insert_pos = position; break; case PLAYLIST_INSERT_LAST: |