From ff3e2c05142c94efadee00812ec348c15f1be1ba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 May 2019 16:20:59 +0200 Subject: [PATCH] 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. --- src/player/Thread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index 3e30fdf32..81271a142 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -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; make it decode the next song */