提交 5cd888f8 authored 作者: Anthony Minessale's avatar Anthony Minessale

pass refresh requests to gen key frames on video bridge

上级 08a69fec
...@@ -80,6 +80,10 @@ static void video_bridge_thread(switch_core_session_t *session, void *obj) ...@@ -80,6 +80,10 @@ static void video_bridge_thread(switch_core_session_t *session, void *obj)
switch_assert(a_codec); switch_assert(a_codec);
switch_assert(b_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 (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 (a_codec->implementation->impl_id == b_codec->implementation->impl_id && !switch_channel_test_flag(b_channel, CF_VIDEO_DECODED_READ)) {
if (set_decoded_read) { if (set_decoded_read) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论