From 37466b64dc80cf8995fc0becf93a482fc3c396e5 Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 26 Jun 2008 20:58:22 +0000 Subject: [PATCH] fix mod_shoutr record stream git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8853 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_shout/mod_shout.c | 6 ++++++ 1 file changed, 6 insertions(+) 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] = "";