From ca70f76a8b9dec5bc2a2082a4b1cf646cd502d20 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 21 Nov 2014 17:42:07 -0500 Subject: [PATCH] FS-7500: refresh vid the other way too when asking for keyframe --- src/switch_core_media.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 17320bae22..76d53470f6 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -9517,6 +9517,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_codec_control(switch_core_sess codec = &engine->write_codec; } + if (cmd == SCC_VIDEO_REFRESH && mtype == SWITCH_MEDIA_TYPE_VIDEO) { + switch_core_session_refresh_video(session); + } + if (codec) { return switch_core_codec_control(codec, cmd, ctype, cmd_data, rtype, ret_data); }