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:
parent
6e3bd4f620
commit
4e8208717b
|
@ -158,6 +158,9 @@ nextSongInPlaylist(struct playlist *playlist)
|
||||||
playlist->queue.single = false;
|
playlist->queue.single = false;
|
||||||
/* no song after this one: stop playback */
|
/* no song after this one: stop playback */
|
||||||
stopPlaylist(playlist);
|
stopPlaylist(playlist);
|
||||||
|
|
||||||
|
/* reset "current song" */
|
||||||
|
playlist->current = -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue