[Freeswitch-svn] [commit] r10445 - freeswitch/trunk/src
FreeSWITCH SVN
anthm at freeswitch.org
Tue Nov 18 14:36:31 PST 2008
Author: anthm
Date: Tue Nov 18 17:36:31 2008
New Revision: 10445
Log:
update
Modified:
freeswitch/trunk/src/switch_rtp.c
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Tue Nov 18 17:36:31 2008
@@ -1290,6 +1290,15 @@
goto end;
}
+ if (rtp_session->max_missed_packets) {
+ if (bytes) {
+ rtp_session->missed_count = 0;
+ } else if (++rtp_session->missed_count >= rtp_session->max_missed_packets) {
+ ret = -2;
+ goto end;
+ }
+ }
+
check = !bytes;
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_BREAK)) {
@@ -1522,13 +1531,6 @@
}
if (check || (bytes && !rtp_session->timer.interval)) {
- if (!bytes && rtp_session->max_missed_packets) {
- if (++rtp_session->missed_count >= rtp_session->max_missed_packets) {
- ret = -2;
- goto end;
- }
- }
-
if (rtp_session->jb && (jb_frame = stfu_n_read_a_frame(rtp_session->jb))) {
memcpy(rtp_session->recv_msg.body, jb_frame->data, jb_frame->dlen);
if (jb_frame->plc) {
More information about the Freeswitch-svn
mailing list