]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix MODFORM-12
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 10 Sep 2008 15:32:35 +0000 (15:32 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 10 Sep 2008 15:32:35 +0000 (15:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9502 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_shout/mod_shout.c

index 7abade5c6a95e19c885ca45af0a15ab2a5c2b5f9..af8b3158e6d8c96bbe4f91fd1fa50c888c52ae72 100644 (file)
@@ -91,6 +91,11 @@ static inline void free_context(shout_context_t *context)
                        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) {