From 0368282486bfcb9d4a8640c7fdafc94f3f96c42d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 13 Nov 2015 16:01:53 +0100 Subject: player/Control: add code comments --- src/player/Control.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/player') 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); -- cgit v1.2.3