From 1f61ad76a49d8bccf4ba43cdb6c88a529b6ffe9d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 22 Dec 2012 08:29:19 -0600 Subject: [PATCH] savs --- src/mod/endpoints/mod_sofia/mod_sofia.h | 2 +- src/mod/endpoints/mod_sofia/sofia_glue.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.h b/src/mod/endpoints/mod_sofia/mod_sofia.h index 417cea3efb..deefaa6dcb 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.h +++ b/src/mod/endpoints/mod_sofia/mod_sofia.h @@ -679,7 +679,7 @@ struct private_object { switch_core_session_t *session; switch_channel_t *channel; switch_media_handle_t *media_handle; - switch_core_media_params_t *mparams; + switch_core_media_params_t mparams; switch_frame_t read_frame; char *codec_order[SWITCH_MAX_CODECS]; diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index ac9d68f7ee..5e2546730c 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -83,9 +83,6 @@ void sofia_glue_attach_private(switch_core_session_t *session, sofia_profile_t * switch_mutex_lock(tech_pvt->flag_mutex); switch_mutex_lock(profile->flag_mutex); - tech_pvt->mparams = switch_core_session_alloc(session, sizeof(*tech_pvt->mparams)); - - /* copy flags from profile to the sofia private */ for (x = 0; x < TFLAG_MAX; x++) { tech_pvt->flags[x] = profile->flags[x];