From: Anthony Minessale Date: Fri, 21 Nov 2014 22:42:07 +0000 (-0500) Subject: FS-7500: refresh vid the other way too when asking for keyframe X-Git-Tag: v1.6.2~614^2~560 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca70f76a8b9dec5bc2a2082a4b1cf646cd502d20;p=thirdparty%2Ffreeswitch.git FS-7500: refresh vid the other way too when asking for keyframe --- 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); }