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.
This commit is contained in:
Max Kellermann 2019-05-20 16:20:59 +02:00
parent 6922a2f55e
commit ff3e2c0514

View File

@ -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 */