From 62c6855f280d9d617fa22c29a173a5cc9524ec4a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 27 Feb 2012 13:28:27 -0600 Subject: [PATCH] only flush on break when its a blocking situation part 1 --- src/switch_rtp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index d48d622baf..8774c2479e 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -3102,6 +3102,8 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ do_2833(rtp_session, session); bytes = 0; return_cng_frame(); + } else { + switch_clear_flag_locked(rtp_session, SWITCH_RTP_FLAG_FLUSH); } }