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

Freeswitch SVN anthm at freeswitch.org
Wed Sep 10 11:32:36 EDT 2008


Author: anthm
Date: Wed Sep 10 11:32:35 2008
New Revision: 9502

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

Log:
fix MODFORM-12

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 Sep 10 11:32:35 2008
@@ -91,6 +91,11 @@
 			int len;
 			int16_t blank[2048] = {0}, *r = NULL;
 			
+			
+			if (context->channels == 2) {
+				r = blank;
+			}
+			
 			len = lame_encode_buffer(context->gfp, blank, r, sizeof(blank) / 2, mp3buffer, sizeof(mp3buffer));
 
 			if (len) {



More information about the Freeswitch-svn mailing list