From 6e3c08f590efc248b7157640acc5e2284175bbe0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 30 Nov 2012 11:43:48 -0600 Subject: [PATCH] disable catchup code when jitterbuffer is there --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 8726beabe8..25a46f3b5c 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -3234,7 +3234,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER)) { if ((switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOFLUSH) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_STICKY_FLUSH)) && - rtp_session->read_pollfd) { + rtp_session->read_pollfd && (!rtp_session->jb || rtp_session->pause_jb)) { if (switch_poll(rtp_session->read_pollfd, 1, &fdr, 0) == SWITCH_STATUS_SUCCESS) { status = read_rtp_packet(rtp_session, &bytes, flags, SWITCH_FALSE); /* switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Initial (%i) %d\n", status, bytes); */