Commit 10be8a87 authored by Max Kellermann's avatar Max Kellermann

playlist_control: fix requeue after seek

The queue update after a seek was wrong: the queued song is cleared by a successful seek. This caused queue/cross-fading problems after a seek.
parent b0fcce65
...@@ -236,13 +236,13 @@ seekSongInPlaylist(struct playlist *playlist, unsigned song, float seek_time) ...@@ -236,13 +236,13 @@ seekSongInPlaylist(struct playlist *playlist, unsigned song, float seek_time)
ret = playerSeek(queue_get_order(&playlist->queue, i), seek_time); ret = playerSeek(queue_get_order(&playlist->queue, i), seek_time);
if (ret < 0) { if (ret < 0) {
playlist->queued = -1; playlist_update_queued_song(playlist, queued);
playlist_update_queued_song(playlist, NULL);
return PLAYLIST_RESULT_NOT_PLAYING; return PLAYLIST_RESULT_NOT_PLAYING;
} }
playlist_update_queued_song(playlist, queued); playlist->queued = -1;
playlist_update_queued_song(playlist, NULL);
return PLAYLIST_RESULT_SUCCESS; return PLAYLIST_RESULT_SUCCESS;
} }
......
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