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().
This commit is contained in:
Max Kellermann 2009-03-26 22:16:51 +01:00
parent 13208bf5a7
commit ed4837662a

View File

@ -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