Bugzilla – Bug 505
Removing last song in playlist causes weird display
Last modified: 2008-09-15 14:37:04 UTC
This one is hard to explain, so I'll start with the steps to reproduce: 1) Queue up a playlist of a few songs (more than 1) 2) Start playing the last song, then press "pause" or "stop" 3) Remove the song from the playlist Result: "Now stopped on (17 of 16): <first song in playlist>" I also get the following line printed out 3 times from slimserver.pl: Use of uninitialized value in array element at /home/jacob/slim/server/Slim/Player/Playlist.pm line 39. This seems to be caused by attempting to access the invalid playlist item (#17 in this case). The glitch occurs via the web interface as well as on the player itself. It will not happen if the song is playing as it is removed. Using latest Slimserver from CVS on Linux, if it makes any difference.
One other thing - if the song is playing while it is removed, the weird "12 of 11" -type display does not occur, BUT the player jumps to the first song of the playlist. The preferable result would be for it to start playing the new last song of the playlist.
a patch in bug339 will prevent the warning for Playlist.pm 39. patch for Bug513 will avoid the (17 of 16) problem.
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006. I am setting them to targets of 6.2.1 to keep them from showing up in my queries.