diff options
Diffstat (limited to 'src/decode.c')
-rw-r--r-- | src/decode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decode.c b/src/decode.c index a07d61843..520485383 100644 --- a/src/decode.c +++ b/src/decode.c @@ -425,8 +425,7 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * pc->play = 0; wakeup_main_task(); - while ((unsigned)cb->end - cb->begin < bbp && - cb->end != buffered_chunks - 1 && + while (availableOutputBuffer(cb) < bbp && dc->state != DECODE_STATE_STOP) { processDecodeInput(); player_sleep(); |