]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
maybe we wont allocate a bunch of ram for no reason at all.
authorMichael Jerris <mike@jerris.com>
Fri, 15 Feb 2008 22:59:35 +0000 (22:59 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 15 Feb 2008 22:59:35 +0000 (22:59 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7638 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_async.c

index 07439c8017cfca9ffc7e5d1d503c72d83a60766f..86a28459a1955721dfb6d333dc3d3bf5d2b45b2f 100644 (file)
@@ -132,11 +132,6 @@ typedef struct {
 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 write_displace_callback(switch_media_bug_t *bug, void *user
 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: