提交 25870608 authored 作者: Anthony Minessale's avatar Anthony Minessale

drop buffer when too many packets are queued

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14872 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 74c7d58a
......@@ -1793,6 +1793,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
rtp_session->hot_hits += rtp_session->samples_per_interval;
if (rtp_session->hot_hits >= rtp_session->samples_per_second * 5) {
switch_set_flag(rtp_session, SWITCH_RTP_FLAG_FLUSH);
hot_socket = 1;
}
} else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论