diff options
author | Max Kellermann <max@duempel.org> | 2015-11-13 16:01:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-13 16:02:07 +0100 |
commit | 0368282486bfcb9d4a8640c7fdafc94f3f96c42d (patch) | |
tree | 884d2b0acd4fbe75d40e912078c1ccaf0101bc99 /src/player | |
parent | 4404f20cf47e8c9c7f850955a9838d4b353f41fd (diff) |
player/Control: add code comments
Diffstat (limited to 'src/player')
-rw-r--r-- | src/player/Control.cxx | 4 |
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); |