From 4e8208717bf8cdc46f4a5f04412c4cdf590ce59e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 28 May 2009 23:23:32 +0200 Subject: 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. --- src/playlist_control.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/playlist_control.c') diff --git a/src/playlist_control.c b/src/playlist_control.c index f96db7f0e..4359611fd 100644 --- a/src/playlist_control.c +++ b/src/playlist_control.c @@ -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 { -- cgit v1.2.3