提交 9359be67 authored 作者: Anthony Minessale's avatar Anthony Minessale

drop excess frames on loopback channel

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13157 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e4117136
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
* *
*/ */
//#define DEBUG_2833 //#define DEBUG_2833
#define RTP_DEBUG_WRITE_DELTA //#define RTP_DEBUG_WRITE_DELTA
#include <switch.h> #include <switch.h>
#include <switch_stun.h> #include <switch_stun.h>
#undef PACKAGE_NAME #undef PACKAGE_NAME
...@@ -2235,13 +2235,12 @@ static int rtp_common_write(switch_rtp_t *rtp_session, ...@@ -2235,13 +2235,12 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
bytes = sbytes; bytes = sbytes;
} }
#undef RTP_DEBUG_WRITE_DELTA
#ifdef RTP_DEBUG_WRITE_DELTA #ifdef RTP_DEBUG_WRITE_DELTA
{ {
switch_time_t now = switch_time_now(); switch_time_t now = switch_time_now();
int delta = (int) (now - rtp_session->send_time) / 1000; 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; rtp_session->send_time = now;
} }
#endif #endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论