]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
pass refresh requests to gen key frames on video bridge
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 14 Jul 2015 16:17:39 +0000 (11:17 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 14 Jul 2015 16:17:39 +0000 (11:17 -0500)
src/switch_ivr_bridge.c

index 82db7a8297b779aeb0dc17836a256379e531f76f..c098f297ce6f62c3abeb5317d447d9f2e23b9b1f 100644 (file)
@@ -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) {