From 1b6303645cbd227374cb24aec8e5c7118f249fbe Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 15 Jun 2009 18:10:27 +0000 Subject: [PATCH] tweak to rtp timing git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13775 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 284efe8d07..07b47ee4c5 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1774,8 +1774,9 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ if ((switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOFLUSH) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_STICKY_FLUSH)) && rtp_session->read_pollfd) { if (switch_poll(rtp_session->read_pollfd, 1, &fdr, 1) == SWITCH_STATUS_SUCCESS) { - if (++rtp_session->hot_hits >= 10) { + if (++rtp_session->hot_hits >= 5) { hot_socket = 1; + rtp_session->hot_hits = 0; } } else { rtp_session->hot_hits = 0;