diff options
author | Max Kellermann <max@duempel.org> | 2009-03-06 00:41:59 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-06 00:41:59 +0100 |
commit | 10be8a8714b49bec5e6f869975962cbc26cebe61 (patch) | |
tree | 052a2533538ebb5605dbf3d19a6a2383093fe11c /src/playlist_control.c | |
parent | b0fcce65d8c9fdee9d1b3fb195ce566fbcbb7605 (diff) | |
download | mpd-10be8a8714b49bec5e6f869975962cbc26cebe61.tar.gz mpd-10be8a8714b49bec5e6f869975962cbc26cebe61.tar.xz mpd-10be8a8714b49bec5e6f869975962cbc26cebe61.zip |
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.
Diffstat (limited to 'src/playlist_control.c')
-rw-r--r-- | src/playlist_control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playlist_control.c b/src/playlist_control.c index 6691df78c..87cea65a5 100644 --- a/src/playlist_control.c +++ b/src/playlist_control.c @@ -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; } |