GNOME Bugzilla – Bug 577030
Incorrect behaviour when removing currently playing song
Last modified: 2009-10-21 18:49:06 UTC
When removing multiple playlist items, including the one currently playing, the playback starts on incorrect item. Steps to reproduce: 1. Add 9 (or more) songs, let's call them Song1 ... Song9 2. Double-click on Song4, it should start playing 3. Select songs from Song2 to Song5 using Shift-Mouse1. 4. Right-click and select "Remove". What happens: Song8 starts playing. What should happen: Song6 should start playing. Note that if the selection starts at the currently playing song, the correct song starts playing after removing the selection. It looks like the offset is equal to the number of songs in the selection prior to the currently playing song. In the example above, the offset is (Song4-Song2) = 2 songs.
Confirmed. The problem is that we just remember the position of the current item and then use that for the next playing item. But that only works when we don't also remove any items which appear before the currently playing one.
There's also some strange thing going on where the playlist becomes completely confused when I reproduce this. Playing another song shows metadata which doesn't belong to it (or the file name was displayed wrong). The whole playlist becomes a mess.
Fixed in master and gnome-2-28, please reopen if you can still reproduce the problem.