FS-11822 [core] reset the codec_string when stream changed

This commit is contained in:
Liyang 2019-04-30 21:43:31 +08:00 committed by Mike Jerris
parent 2d231cdff3
commit 0c73aa82da

View File

@ -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);