提交 88d410d3 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix uuid_jitterbuffer edge case debugging a non-existant jb causing a seg

上级 02234ae8
...@@ -1366,7 +1366,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi ...@@ -1366,7 +1366,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
if (s && !strcmp(s, "off")) { if (s && !strcmp(s, "off")) {
s = NULL; s = NULL;
} }
switch_rtp_debug_jitter_buffer(tech_pvt->rtp_session, s); status = switch_rtp_debug_jitter_buffer(tech_pvt->rtp_session, s);
goto end; goto end;
} }
......
...@@ -1875,7 +1875,7 @@ static void jb_logger(const char *file, const char *func, int line, int level, c ...@@ -1875,7 +1875,7 @@ 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) SWITCH_DECLARE(switch_status_t) switch_rtp_debug_jitter_buffer(switch_rtp_t *rtp_session, const char *name)
{ {
if (!switch_rtp_ready(rtp_session)) { if (!switch_rtp_ready(rtp_session) || !rtp_session->jb) {
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论