mpd/src/player
Max Kellermann 304d45b551 Revert "player/Thread: remove unnecessary "pipe" check"
This reverts commit ff3e2c0514.  The
check was necessary, after all, because this is what checked whether
the decoder had finished the current or the next song.

> The "queued" flag can only possibly be set if the decoder is still
> decoding the current song or if the decoder is stopped.

That was wrong because ProcessCommand() sets `queued=true` and also
starts the decoder (if it was idle).

> This is also what the following assert() checks.

That was also wrong, because the assert() has two conditions.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/566
2019-05-31 17:23:12 +02:00
..
Control.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
Control.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
CrossFade.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
CrossFade.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
Listener.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
Outputs.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
Thread.cxx Revert "player/Thread: remove unnecessary "pipe" check" 2019-05-31 17:23:12 +02:00