[Freeswitch-svn] [commit] r7638 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Fri Feb 15 17:59:35 EST 2008


Author: mikej
Date: Fri Feb 15 17:59:35 2008
New Revision: 7638

Modified:
   freeswitch/trunk/src/switch_ivr_async.c

Log:
maybe we wont allocate a bunch of ram for no reason at all.

Modified: freeswitch/trunk/src/switch_ivr_async.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_async.c	(original)
+++ freeswitch/trunk/src/switch_ivr_async.c	Fri Feb 15 17:59:35 2008
@@ -132,11 +132,6 @@
 static switch_bool_t write_displace_callback(switch_media_bug_t *bug, void *user_data, switch_abc_type_t type)
 {
 	displace_helper_t *dh = (displace_helper_t *) user_data;
-	uint8_t data[SWITCH_RECOMMENDED_BUFFER_SIZE];
-	switch_frame_t frame = { 0 };
-
-	frame.data = data;
-	frame.buflen = SWITCH_RECOMMENDED_BUFFER_SIZE;
 
 	switch (type) {
 	case SWITCH_ABC_TYPE_INIT:
@@ -205,11 +200,6 @@
 static switch_bool_t read_displace_callback(switch_media_bug_t *bug, void *user_data, switch_abc_type_t type)
 {
 	displace_helper_t *dh = (displace_helper_t *) user_data;
-	uint8_t data[SWITCH_RECOMMENDED_BUFFER_SIZE];
-	switch_frame_t frame = { 0 };
-
-	frame.data = data;
-	frame.buflen = SWITCH_RECOMMENDED_BUFFER_SIZE;
 
 	switch (type) {
 	case SWITCH_ABC_TYPE_INIT:



More information about the Freeswitch-svn mailing list