From 44b5cf828b8657ea6a92f78f28194d226e7b0475 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Wed, 2 Nov 2011 09:20:12 -0500 Subject: [PATCH] FS-3646 --resolve Initialize Lame sooner for file open --- src/mod/formats/mod_shout/mod_shout.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index ea6912b193..81894c7299 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -836,6 +836,11 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, const char switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error opening %s\n", path); goto error; } + if (!context->lame_ready) { + lame_init_params(context->gfp); + lame_print_config(context->gfp); + context->lame_ready = 1; + } } }