Commit 4e820871 authored by Max Kellermann's avatar Max Kellermann

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.
parent 6e3bd4f6
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment