Commit 03682824 authored by Max Kellermann's avatar Max Kellermann

player/Control: add code comments

parent 4404f20c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment