]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add sanity check on jitterbuffer debug
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Feb 2011 16:58:26 +0000 (10:58 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Feb 2011 16:58:26 +0000 (10:58 -0600)
src/switch_rtp.c

index e8d7558bced8a6feb7e82cd45102b8af261d7f01..4df867aa64ea478574875961061e96bdb85708dd 100644 (file)
@@ -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);