aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-26 22:16:51 +0100
committerMax Kellermann <max@duempel.org>2009-03-26 22:16:51 +0100
commited4837662ad0ff969024cea1c906d5c9f245d8b6 (patch)
tree8135b1de21cebc444b2d7b9b6a6c614184bc11cb /src
parent13208bf5a7c91a6406195139f1068f173ccdac94 (diff)
downloadmpd-ed4837662ad0ff969024cea1c906d5c9f245d8b6.tar.gz
mpd-ed4837662ad0ff969024cea1c906d5c9f245d8b6.tar.xz
mpd-ed4837662ad0ff969024cea1c906d5c9f245d8b6.zip
playlist_state: fix playback restore in random mode
The functions playPlaylist() and seekSongInPlaylist() expect a song position, not a song order number. Don't convert the "current" variable with queue_position_to_order().
Diffstat (limited to '')
-rw-r--r--src/playlist_state.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/playlist_state.c b/src/playlist_state.c
index 698366b35..b6636fa54 100644
--- a/src/playlist_state.c
+++ b/src/playlist_state.c
@@ -165,8 +165,6 @@ playlist_state_restore(FILE *fp, struct playlist *playlist)
if (!queue_valid_position(&playlist->queue, current))
current = 0;
- current = queue_position_to_order(&playlist->queue, current);
-
if (seek_time == 0)
playPlaylist(playlist, current);
else