Rockbox

Tasklist

FS#12688 - "Queue" sometimes results in songs being placed before instead of after the currently playing song.

Attached to Project: Rockbox
Opened by Sebastian (Sebastian) - Monday, 04 June 2012, 14:19 GMT
Task Type Bugs
Category Playlists
Status Unconfirmed
Assigned To No-one
Operating System Sansa e200
Severity Low
Priority Normal
Reported Version Release 3.11
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I have a Sansa e260 player and currently Rockbox 3.11.2 running on it.
I got a shuffled playlist with all of my music in it (added to the playlist using the insert function and reshuffled afterwards). When I want to listen to one or more specific songs, I enqueue them with the queue function (in play mode select song, album etc. from database -> context menu -> Current playlist -> Queue).
This works fine in most cases but when there had already been a queue that ended the song before, the song that I want to enqueue is placed before the currently playing song (which is the first song not any more part of the former queue) instead of after it.
If I use the feature "Queue next" the song, album or whatever is correctly placed after the currently playing song. After having used "Queue next" once, other songs enqueued with the "Queue" command may be also placed correctly at the end of the new queue. I believe to remember some strange behavior though when in that case the song was also incorrectly placed as described above.
I tried mp3 and ogg files and the behavior was the same regardless of which file format was used. It also doesn't matter if the song is played from the player's memory or from micro SD card.
As soon as the second song after the queue is playing, enqueued content is correctly placed after the currently playing song again.
I have experienced this behavior for a long time now and with different Rockbox builds on my player.

To reproduce the behavior:
1. Have a reshuffled playlist (created using "Insert" command, then selecting "Playlist" -> "Reshuffle" from the wps context menu) with some songs in it
2. Listen to one of these songs which is not the first or last one in the playlist
3. Enqueue a song from your database via the context menu (This song should be placed directly after the currently playing one)
4. Play the enqueued song (or a part of it)
5. Play the next song in playlist
6. Now enqueue another song (This song should now be placed directly before the currently playing song in the playlist)

I have hardly any programming experience at all but it seems to me that somehow there exists some sort of marker that indicates the end of a queue and that this marker is not erased immediately after a queue ends but "one song too late"?
This task depends upon

Comment by Sebastian (Sebastian) - Monday, 04 June 2012, 14:28 GMT
I forgot to mention that in step 3 and 6 the songs should be enqueued using the "Queue" command...
Comment by Sebastian (Sebastian) - Thursday, 14 June 2012, 11:45 GMT
Update:
When a song is enqueued incorrectly before the currently playing song, manually moving the enqueued song after the currently playing one in playlist does not result in the "Queue" function working correctly afterwards. Instead, the next song enqueued via the "Queue" command is again placed before the currently playing song instead after the manually moved enqueued song.
Contrary to what I wrote in the original post "Queue after next" always seems to result in "Queue" command working correctly afterwards.

Loading...