Project "FreeSWITCH Source" received a push.

branch: master updated

       via: 36f6218b8bba3233cf3fb501b01a0288a08e9f00 (commit)
      from: 2ec2a9b0d335a8d6a30ab5a92448ac3ad63649ff (commit)


= COMMIT LOG ===========================================================
committer: Anthony Minessale
comments: 
add sanity check on jitterbuffer debug

diff --git a/src/switch_rtp.c b/src/switch_rtp.c
index e8d7558..4df867a 100644
--- a/src/switch_rtp.c
+++ b/src/switch_rtp.c
@@ -1875,6 +1875,10 @@ static void jb_logger(const char *file, const char *func, int line, int level, c
 SWITCH_DECLARE(switch_status_t) switch_rtp_debug_jitter_buffer(switch_rtp_t *rtp_session, const char *name)
 {
 
+	if (!switch_rtp_ready(rtp_session)) {
+		return SWITCH_STATUS_FALSE;
+	}
+	
 	stfu_n_debug(rtp_session->jb, name);
 	stfu_global_set_logger(jb_logger);
 
========================================================================

Summary of changes:
 src/switch_rtp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630 --
FreeSWITCH Source