From 10990a06846c1766e86fe6af227ceb81fbd3c12d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 17 Oct 2017 19:33:56 +0200 Subject: [PATCH] queue/Playlist: call MoveOrderToCurrent() in SeekSongOrder() on song change Applies the improvements from the previous commit to the "seek" commands, which are also capable of switching songs. Closes #119 --- src/queue/PlaylistControl.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/queue/PlaylistControl.cxx b/src/queue/PlaylistControl.cxx index 2217756dd..4b17386ae 100644 --- a/src/queue/PlaylistControl.cxx +++ b/src/queue/PlaylistControl.cxx @@ -223,6 +223,8 @@ playlist::SeekSongOrder(PlayerControl &pc, unsigned i, SongTime seek_time) /* seeking is not within the current song - prepare song change */ + i = MoveOrderToCurrent(i); + playing = true; current = i;