From 138184fc93e7ea1cb39b140b89ef1d4f1bc8f72c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 29 Sep 2008 16:59:06 +0000 Subject: [PATCH] fix the fix git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9739 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_shout/mod_shout.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index ec3fdb2e3c..02426c7f7d 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -271,7 +271,6 @@ static size_t decode_fd(shout_context_t *context, void *data, size_t bytes) decode_status = mpg123_decode(context->mh, in, inlen, out, outlen, &dlen); } - if (context->err) { goto error; } @@ -287,7 +286,7 @@ static size_t decode_fd(shout_context_t *context, void *data, size_t bytes) } else if (decode_status == MPG123_OK) { usedlen = dlen; break; - } else if (decode_status == MPG123_DONE) { + } else if (decode_status == MPG123_DONE || (context->eof && decode_status == MPG123_NEED_MORE)) { context->eof++; goto end; } else if (decode_status == MPG123_ERR || decode_status > 0) {