From a491df05f1771791b254c7c99c131830a0ac9ed9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 7 Mar 2014 03:35:36 +0500 Subject: [PATCH] declinatio mortuus obfirmo! --- src/switch_rtp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 0fc076ff68..adc110c81c 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -4378,7 +4378,7 @@ static void do_flush(switch_rtp_t *rtp_session, int force) if (switch_rtp_ready(rtp_session) ) { if (rtp_session->jb && !rtp_session->pause_jb && jb_valid(rtp_session)) { - return; + goto end; } if (rtp_session->flags[SWITCH_RTP_FLAG_DEBUG_RTP_READ]) { @@ -4434,6 +4434,8 @@ static void do_flush(switch_rtp_t *rtp_session, int force) } } + end: + READ_DEC(rtp_session); }