]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7500: refresh vid the other way too when asking for keyframe
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 21 Nov 2014 22:42:07 +0000 (17:42 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:46:48 +0000 (12:46 -0500)
src/switch_core_media.c

index 17320bae229a0796f157bbd6563b1975c10cefad..76d53470f6e809df61d8ba5bfe3fc9354a38b719 100644 (file)
@@ -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);
        }