From 9359be6758a9c3259a7434564546fa4892f06f53 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sun, 26 Apr 2009 22:10:28 +0000 Subject: [PATCH] drop excess frames on loopback channel git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13157 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 1a1693049a..6deb482c99 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -31,7 +31,7 @@ * */ //#define DEBUG_2833 -#define RTP_DEBUG_WRITE_DELTA +//#define RTP_DEBUG_WRITE_DELTA #include #include #undef PACKAGE_NAME @@ -2235,13 +2235,12 @@ static int rtp_common_write(switch_rtp_t *rtp_session, bytes = sbytes; } -#undef RTP_DEBUG_WRITE_DELTA + #ifdef RTP_DEBUG_WRITE_DELTA { switch_time_t now = switch_time_now(); int delta = (int) (now - rtp_session->send_time) / 1000; - //assert(delta); - //printf("WRITE %d delta %d\n", (int)bytes, delta); + printf("WRITE %d delta %d\n", (int)bytes, delta); rtp_session->send_time = now; } #endif