[Freeswitch-svn] [commit] r7764 - freeswitch/trunk/src/mod/formats/mod_shout
Author: anthm Date: Wed Feb 27 22:22:26 2008 New Revision: 7764 Modified: freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c Log: silence broken compiler 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 Wed Feb 27 22:22:26 2008 @@ -74,6 +74,8 @@ static inline void free_context(shout_context_t * context) { + int ret; + if (context) { context->err++; @@ -87,7 +89,10 @@ int len; while ((len = lame_encode_flush(context->gfp, mp3buffer, sizeof(mp3buffer))) > 0) { - fwrite(mp3buffer, 1, len, context->fp); + ret = fwrite(mp3buffer, 1, len, context->fp); + if (ret < 0) { + break; + } } lame_mp3_tags_fid(context->gfp, context->fp); @@ -857,7 +862,8 @@ } if (rlen) { - if (fwrite(mp3buf, 1, rlen, context->fp) < 0) { + int ret = fwrite(mp3buf, 1, rlen, context->fp); + if (ret < 0) { return SWITCH_STATUS_FALSE; } }
participants (1)
-
Freeswitch SVN