diff options
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/pcm_decoder_plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decoder/pcm_decoder_plugin.c b/src/decoder/pcm_decoder_plugin.c index 882d59a36..1da21c209 100644 --- a/src/decoder/pcm_decoder_plugin.c +++ b/src/decoder/pcm_decoder_plugin.c @@ -51,6 +51,10 @@ pcm_stream_decode(struct decoder *decoder, struct input_stream *is) size_t nbytes = decoder_read(decoder, is, buffer, sizeof(buffer)); + + if (nbytes == 0 && input_stream_eof(is)) + break; + cmd = nbytes > 0 ? decoder_data(decoder, is, buffer, nbytes, 0) |