From: Anthony Minessale Date: Mon, 27 Feb 2012 19:28:27 +0000 (-0600) Subject: only flush on break when its a blocking situation part 1 X-Git-Tag: v1.2-rc1~19^2^2~68^2~51^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62c6855f280d9d617fa22c29a173a5cc9524ec4a;p=thirdparty%2Ffreeswitch.git only flush on break when its a blocking situation part 1 --- 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); } }