drop excess frames on loopback channel
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13157 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e4117136fc
commit
9359be6758
|
@ -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 @@ 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
|
||||
|
|
Loading…
Reference in New Issue