Commit ed483766 authored by Max Kellermann's avatar Max Kellermann

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().
parent 13208bf5
......@@ -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
......
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