From 0c73aa82da99a0ad99a0790d3b8e069a8f56a1b7 Mon Sep 17 00:00:00 2001 From: Liyang Date: Tue, 30 Apr 2019 21:43:31 +0800 Subject: [PATCH] FS-11822 [core] reset the codec_string when stream changed --- 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 e27e9224af..baa2728b73 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -4641,6 +4641,7 @@ static void check_stream_changes(switch_core_session_t *session, const char *r_s if (sdp_type == SDP_TYPE_REQUEST && r_sdp) { const char *filter_codec_string = switch_channel_get_variable(session->channel, "filter_codec_string"); + switch_channel_set_variable(session->channel, "codec_string", NULL); switch_core_media_merge_sdp_codec_string(session, r_sdp, sdp_type, filter_codec_string); } switch_core_session_check_outgoing_crypto(other_session);