aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlist_control.c')
-rw-r--r--src/playlist_control.c6
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;
}