From a095c83eccf2187be19515d66198843200351167 Mon Sep 17 00:00:00 2001 From: Liyang Date: Wed, 8 May 2019 16:39:53 +0800 Subject: [PATCH] FS-11832 [core] clear the old pmap when codec negotiated --- src/switch_core_media.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 2db8c7453f..ff5300537c 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -6182,6 +6182,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s vmatch = 1; v_engine->codec_negotiated = 1; + v_engine->payload_map = NULL; for(j = 0; j < m_idx && smh->num_negotiated_codecs < SWITCH_MAX_CODECS; j++) { payload_map_t *pmap = switch_core_media_add_payload_map(session,