From 5cd888f840aa3bbd53dbd6fcd3f6796415230328 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 14 Jul 2015 11:17:39 -0500 Subject: [PATCH] pass refresh requests to gen key frames on video bridge --- src/switch_ivr_bridge.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index 82db7a8297..c098f297ce 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -80,6 +80,10 @@ static void video_bridge_thread(switch_core_session_t *session, void *obj) switch_assert(a_codec); switch_assert(b_codec); + if (switch_channel_test_flag(channel, CF_VIDEO_REFRESH_REQ)) { + refresh_timer = refresh_cnt; + } + if (switch_channel_test_flag(channel, CF_VIDEO_DECODED_READ)) { if (a_codec->implementation->impl_id == b_codec->implementation->impl_id && !switch_channel_test_flag(b_channel, CF_VIDEO_DECODED_READ)) { if (set_decoded_read) {