[Freeswitch-svn] [commit] r8853 - freeswitch/trunk/src/mod/formats/mod_shout
Freeswitch SVN
brian at freeswitch.org
Thu Jun 26 16:58:22 EDT 2008
Author: brian
Date: Thu Jun 26 16:58:22 2008
New Revision: 8853
Modified:
freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c
Log:
fix mod_shoutr record stream
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 Thu Jun 26 16:58:22 2008
@@ -471,6 +471,12 @@
{
shout_context_t *context = (shout_context_t *) obj;
+ if (!context->lame_ready) {
+ lame_init_params(context->gfp);
+ lame_print_config(context->gfp);
+ context->lame_ready = 1;
+ }
+
while (!context->err && context->thread_running) {
unsigned char mp3buf[8192] = "";
unsigned char audio[8192] = "";
More information about the Freeswitch-svn
mailing list