Commit ff3e2c05 authored by Max Kellermann's avatar Max Kellermann

player/Thread: remove unnecessary "pipe" check

The "queued" flag can only possibly be set if the decoder is still decoding the current song or if the decoder is stopped. This is also what the following assert() checks. This check was not necessary.
parent 6922a2f5
...@@ -996,7 +996,7 @@ Player::Run() noexcept ...@@ -996,7 +996,7 @@ Player::Run() noexcept
} }
} }
if (dc.IsIdle() && queued && dc.pipe == pipe) { if (dc.IsIdle() && queued) {
/* the decoder has finished the current song; /* the decoder has finished the current song;
make it decode the next song */ make it decode the next song */
......
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