From 3155c6c7861fb6263efb6adb4511ef4fce873fda Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Mon, 20 Aug 2012 18:39:04 -0400 Subject: [PATCH] mod_sangoma_codec: Remove debug message that is seldom needed anymore and seems to be causing confusion and annoying users --- src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c b/src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c index 2be9533936..4cc3c2de79 100644 --- a/src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c +++ b/src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c @@ -578,8 +578,10 @@ static switch_status_t switch_sangoma_encode(switch_codec_t *codec, switch_codec if (sess->encoder.rtp_queue[sess->encoder.queue_rindex].datalen) { /* if there is something where we want to write, we're dropping it */ sess->encoder.rxdiscarded++; +#if 0 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Discarding encoded frame of %d bytes from RTP session %lu, windex = %d, rindex = %d\n", sess->encoder.rtp_queue[sess->encoder.queue_rindex].datalen, sess->sessid, sess->encoder.queue_windex, sess->encoder.queue_rindex); +#endif SAFE_INDEX_INC(sess->encoder.rtp_queue, sess->encoder.queue_rindex); sess->encoder.queue_size--; } @@ -766,8 +768,10 @@ static switch_status_t switch_sangoma_decode(switch_codec_t *codec, /* codec ses if (sess->decoder.rtp_queue[sess->decoder.queue_rindex].datalen) { /* if there is something where we want to write, we're dropping it */ sess->decoder.rxdiscarded++; +#if 0 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Discarding decoded frame of %d bytes from RTP session %lu, windex = %d, rindex = %d\n", sess->decoder.rtp_queue[sess->decoder.queue_rindex].datalen, sess->sessid, sess->decoder.queue_windex, sess->decoder.queue_rindex); +#endif SAFE_INDEX_INC(sess->decoder.rtp_queue, sess->decoder.queue_rindex); sess->decoder.queue_size--; }