[Freeswitch-svn] [commit] r5444 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Fri Jun 22 17:45:36 EDT 2007
Author: anthm
Date: Fri Jun 22 17:45:36 2007
New Revision: 5444
Modified:
freeswitch/trunk/src/switch_rtp.c
Log:
avoiding racing cpu
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Fri Jun 22 17:45:36 2007
@@ -1005,9 +1005,14 @@
if (bytes && rtp_session->cng_pt && rtp_session->recv_msg.header.pt == rtp_session->cng_pt) {
+ if (rtp_session->ms_per_packet) {
+ switch_yield((rtp_session->ms_per_packet / 1000) * 750);
+ } else {
+ switch_yield(1000);
+ }
continue;
}
-
+
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_GOOGLEHACK) && rtp_session->recv_msg.header.pt == 102) {
More information about the Freeswitch-svn
mailing list