From: Anthony Minessale Date: Tue, 12 May 2015 20:52:25 +0000 (-0500) Subject: FS-7501: flush video on jb activate/reset X-Git-Tag: v1.6.2~614^2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d253f74e48bfaf2377838d6a12023884e28c6c14;p=thirdparty%2Ffreeswitch.git FS-7501: flush video on jb activate/reset --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index db4bbe38d2..b4a2e8a950 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -3936,6 +3936,9 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_video_buffer_size(switch_rtp_t *r switch_vb_set_frames(rtp_session->vb, frames, frames * 3); } + switch_rtp_flush(rtp_session); + switch_core_session_request_video_refresh(rtp_session->session); + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_DEBUG, "Setting video buffer %u Frames.\n", frames); return SWITCH_STATUS_SUCCESS;