diff options
author | Max Kellermann <max@musicpd.org> | 2018-09-21 19:05:25 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-09-21 19:05:25 +0200 |
commit | 1d00d55d53aed450fb5af1da00d81f07afed9f90 (patch) | |
tree | 13554d1cebbbad7e06633ce3f45e0f77df83993f /src/player | |
parent | a190db0873dbe8fc6d6ed4b0313bde789d877c0c (diff) |
player/Thread: stop buffering if buffer is full
Shouldn't ever happen, but who knows...
Diffstat (limited to 'src/player')
-rw-r--r-- | src/player/Thread.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index 14f8aa08e..008b03c11 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -944,7 +944,7 @@ Player::Run() noexcept prevent stuttering on slow machines */ if (pipe->GetSize() < pc.buffered_before_play && - !dc.IsIdle()) { + !dc.IsIdle() && !buffer.IsFull()) { /* not enough decoded buffer space yet */ dc.WaitForDecoder(); |