Otherwise the song playing might go on forever. --- 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 882d59a..1da21c2 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) -- 1.7.1 ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team