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:
parent
13208bf5a7
commit
ed4837662a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user