playlist: reset "current song" when playlist ends

Commit f78cddb4 introduced a regression: when the playlist reached its
end, MPD did not reset the "current song" pointer anymore after stop.
Add a "current = -1" code line.
This commit is contained in:
Max Kellermann 2009-05-28 23:23:32 +02:00
parent 6e3bd4f620
commit 4e8208717b

View File

@ -158,6 +158,9 @@ nextSongInPlaylist(struct playlist *playlist)
playlist->queue.single = false;
/* no song after this one: stop playback */
stopPlaylist(playlist);
/* reset "current song" */
playlist->current = -1;
}
else
{