[core] fix set rtp flag for rtcp events after flags zeroed out.

This commit is contained in:
Dragos Oancea 2022-03-29 10:20:42 +03:00 committed by Andrey Volk
parent 8f9f5c1c3e
commit 30d5d58e6e
1 changed files with 0 additions and 2 deletions

View File

@ -8710,8 +8710,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
switch_core_media_set_video_codec(session, 0); switch_core_media_set_video_codec(session, 0);
memset(flags, 0, sizeof(flags));
flags[SWITCH_RTP_FLAG_DATAWAIT]++; flags[SWITCH_RTP_FLAG_DATAWAIT]++;
if (!switch_media_handle_test_media_flag(smh, SCMF_DISABLE_RTP_AUTOADJ) && !switch_channel_test_flag(session->channel, CF_AVPF) && if (!switch_media_handle_test_media_flag(smh, SCMF_DISABLE_RTP_AUTOADJ) && !switch_channel_test_flag(session->channel, CF_AVPF) &&