]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
only flush on break when its a blocking situation part 1
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 27 Feb 2012 19:28:27 +0000 (13:28 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 27 Feb 2012 19:28:27 +0000 (13:28 -0600)
src/switch_rtp.c

index d48d622baf05de3692338e2e4545d23fc75ab8c3..8774c2479e62a6f72a1094e5fb614423a5c63e93 100644 (file)
@@ -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);
                        }
                }