From: Anthony Minessale Date: Fri, 18 Sep 2015 15:06:41 +0000 (-0500) Subject: FS-8130 don't skip delta on video unless it was less than 1 second worth to prevent... X-Git-Tag: v1.6.2~1^2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca4ac85f6de99fac6773f79885c8c710ed4b1c2c;p=thirdparty%2Ffreeswitch.git FS-8130 don't skip delta on video unless it was less than 1 second worth to prevent locking up chrome --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 46ddbb7964..ad2e934cf3 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -7050,7 +7050,10 @@ static int rtp_common_write(switch_rtp_t *rtp_session, if (switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_GEN_TS_DELTA)) { int32_t delta = (int32_t) (ntohl(send_msg->header.ts) - rtp_session->ts_norm.last_frame); - rtp_session->ts_norm.delta = delta; + if (switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO) && delta > 0 && delta < 90000) { + rtp_session->ts_norm.delta = delta; + } + rtp_session->ts_norm.ts += rtp_session->ts_norm.delta; } else { switch_core_timer_sync(&rtp_session->timer);