mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
fix mod_shoutr record stream
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8853 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
879049b9d0
commit
37466b64dc
@ -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] = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user