From: Anthony Minessale Date: Mon, 29 Sep 2008 16:59:06 +0000 (+0000) Subject: fix the fix X-Git-Tag: v1.0.2~1048 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=138184fc93e7ea1cb39b140b89ef1d4f1bc8f72c;p=thirdparty%2Ffreeswitch.git fix the fix git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9739 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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) {