]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3646 --resolve Initialize Lame sooner for file open
authorJeff Lenk <jeff@jefflenk.com>
Wed, 2 Nov 2011 14:20:12 +0000 (09:20 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 2 Nov 2011 14:20:12 +0000 (09:20 -0500)
src/mod/formats/mod_shout/mod_shout.c

index ea6912b193f2cacdff5a9befc7caccd3f91b0abb..81894c729965f16f1c6399879dd54267b4e13cb8 100644 (file)
@@ -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;
+                       }
                }
        }