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.
This commit is contained in:
Max Kellermann 2009-03-06 00:41:59 +01:00
parent b0fcce65d8
commit 10be8a8714

View File

@ -236,13 +236,13 @@ seekSongInPlaylist(struct playlist *playlist, unsigned song, float seek_time)
ret = playerSeek(queue_get_order(&playlist->queue, i), seek_time);
if (ret < 0) {
playlist->queued = -1;
playlist_update_queued_song(playlist, NULL);
playlist_update_queued_song(playlist, queued);
return PLAYLIST_RESULT_NOT_PLAYING;
}
playlist_update_queued_song(playlist, queued);
playlist->queued = -1;
playlist_update_queued_song(playlist, NULL);
return PLAYLIST_RESULT_SUCCESS;
}