add a way to tell mod_conference when the rate of the channel has changed due to a codec change so it can reset the resampler and codecs internally

This commit is contained in:
Anthony Minessale committed 2014-03-07 05:17:47 +05:00
1 parent a491df05f1
commit bd4a0d8cbc
5 files changed
+99 -12

No files matched your search

+8
View File
@@ -7479,6 +7479,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se
switch (msg->message_id) {
case SWITCH_MESSAGE_RESAMPLE_EVENT:
{
if (switch_channel_test_flag(session->channel, CF_CONFERENCE)) {
switch_channel_set_flag(session->channel, CF_CONFERENCE_RESET_MEDIA);
}
}
break;
case SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ:
{
if (v_engine->rtp_session) {