]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix mod_shoutr record stream
authorBrian West <brian@freeswitch.org>
Thu, 26 Jun 2008 20:58:22 +0000 (20:58 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 26 Jun 2008 20:58:22 +0000 (20:58 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8853 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_shout/mod_shout.c

index 176f0a28829bde0cc85fe1ef5c999fd811b411fc..b0edc4378a1d29bdcaf9883afb3234e67bc4f617 100644 (file)
@@ -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] = "";