add dynamic buffers

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2584 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-09-08 19:00:40 +00:00
parent f689b62fb6
commit 4531a4e3e1
1 changed files with 6 additions and 3 deletions

View File

@ -1559,11 +1559,14 @@ SWITCH_DECLARE(void) switch_core_session_reset(switch_core_session_t *session)
{
/* sweep theese under the rug, they wont be leaked they will be reclaimed
when the session ends.
*/
session->raw_write_buffer = NULL;
session->raw_read_buffer = NULL;
*/
session->read_resampler = NULL;
session->write_resampler = NULL;
/* wipe theese, they will be recreated if need be */
switch_buffer_destroy(&(*session)->raw_read_buffer);
switch_buffer_destroy(&(*session)->raw_write_buffer);
}
SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_session_t *session, switch_frame_t *frame,