From: Brian West Date: Thu, 26 Jun 2008 20:58:22 +0000 (+0000) Subject: fix mod_shoutr record stream X-Git-Tag: v1.0.1~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37466b64dc80cf8995fc0becf93a482fc3c396e5;p=thirdparty%2Ffreeswitch.git fix mod_shoutr record stream git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8853 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index 176f0a2882..b0edc4378a 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -471,6 +471,12 @@ static void *SWITCH_THREAD_FUNC write_stream_thread(switch_thread_t *thread, voi { 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] = "";