aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player/Control.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/player/Control.cxx b/src/player/Control.cxx
index 6c78290cf..db8a8b779 100644
--- a/src/player/Control.cxx
+++ b/src/player/Control.cxx
@@ -209,6 +209,10 @@ PlayerControl::SeekLocked(DetachedSong *song, SongTime t, Error &error_r)
{
assert(song != nullptr);
+ /* to issue the SEEK command below, we need to clear the
+ "next_song" attribute with the CANCEL command */
+ /* optimization TODO: if the decoder happens to decode that
+ song already, don't cancel that */
if (next_song != nullptr)
SynchronousCommand(PlayerCommand::CANCEL);