player/Control: add code comments

This commit is contained in:
Max Kellermann 2015-11-13 16:01:53 +01:00
parent 4404f20cf4
commit 0368282486

View File

@ -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);