From 4981dcfb96f7eaf115cd0242c07d1883ef597c6b Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 15 Feb 2008 23:10:28 +0000 Subject: [PATCH] pool allocate instead. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7640 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 024db02a6d..6664bc9a30 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -1643,7 +1643,7 @@ static void conference_loop_output(conference_member_t * member) { switch_channel_t *channel = switch_core_session_get_channel(member->session); switch_frame_t write_frame = { 0 }; - uint8_t data[SWITCH_RECOMMENDED_BUFFER_SIZE]; + uint8_t *data; switch_timer_t timer = { 0 }; switch_codec_t *read_codec = switch_core_session_get_read_codec(member->session); uint32_t interval = read_codec->implementation->microseconds_per_frame / 1000; @@ -1666,8 +1666,8 @@ static void conference_loop_output(conference_member_t * member) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "setup timer %s success interval: %u samples: %u\n", member->conference->timer_name, interval, tsamples); - write_frame.data = data; - write_frame.buflen = sizeof(data); + write_frame.data = data = switch_core_session_alloc(member->session, SWITCH_RECOMMENDED_BUFFER_SIZE); + write_frame.buflen = SWITCH_RECOMMENDED_BUFFER_SIZE; write_frame.codec = &member->write_codec; if (!switch_test_flag(member->conference, CFLAG_ANSWERED)) {