summaryrefslogtreecommitdiff
path: root/src/player
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-09-21 19:05:25 +0200
committerMax Kellermann <max@musicpd.org>2018-09-21 19:05:25 +0200
commit1d00d55d53aed450fb5af1da00d81f07afed9f90 (patch)
tree13554d1cebbbad7e06633ce3f45e0f77df83993f /src/player
parenta190db0873dbe8fc6d6ed4b0313bde789d877c0c (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.cxx2
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();