[Freeswitch-svn] [commit] r13157 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Sun Apr 26 15:10:28 PDT 2009


Author: anthm
Date: Sun Apr 26 17:10:28 2009
New Revision: 13157

Log:
drop excess frames on loopback channel

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	Sun Apr 26 17:10:28 2009
@@ -31,7 +31,7 @@
  *
  */
 //#define DEBUG_2833
-#define RTP_DEBUG_WRITE_DELTA
+//#define RTP_DEBUG_WRITE_DELTA
 #include <switch.h>
 #include <switch_stun.h>
 #undef PACKAGE_NAME
@@ -2235,13 +2235,12 @@
 			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



More information about the Freeswitch-svn mailing list