[Freeswitch-svn] [commit] r9739 - freeswitch/trunk/src/mod/formats/mod_shout

Freeswitch SVN anthm at freeswitch.org
Mon Sep 29 12:59:06 EDT 2008


Author: anthm
Date: Mon Sep 29 12:59:06 2008
New Revision: 9739

Modified:
   freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c

Log:
fix the fix

Modified: freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c	(original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c	Mon Sep 29 12:59:06 2008
@@ -271,7 +271,6 @@
 				decode_status = mpg123_decode(context->mh, in, inlen, out, outlen, &dlen);
 			}
 
-
 			if (context->err) {
 				goto error;
 			}
@@ -287,7 +286,7 @@
 			} 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) {



More information about the Freeswitch-svn mailing list