aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-11-13 16:01:53 +0100
committerMax Kellermann <max@duempel.org>2015-11-13 16:02:07 +0100
commit0368282486bfcb9d4a8640c7fdafc94f3f96c42d (patch)
tree884d2b0acd4fbe75d40e912078c1ccaf0101bc99
parent4404f20cf47e8c9c7f850955a9838d4b353f41fd (diff)
downloadmpd-0368282486bfcb9d4a8640c7fdafc94f3f96c42d.tar.gz
mpd-0368282486bfcb9d4a8640c7fdafc94f3f96c42d.tar.xz
mpd-0368282486bfcb9d4a8640c7fdafc94f3f96c42d.zip
player/Control: add code comments
-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);