提交 031757e9 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix FSCORE-206

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10056 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 8c663f85
......@@ -496,7 +496,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
even_more_done:
if (!*frame) {
if (!*frame || !(*frame)->codec || !(*frame)->codec->implementation) {
*frame = &runtime.dummy_cng_frame;
}
......@@ -559,6 +559,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess
}
switch_assert(frame->codec != NULL);
switch_assert(frame->codec->implementation != NULL);
if ((session->write_codec && frame->codec && session->write_codec->implementation != frame->codec->implementation)) {
need_codec = TRUE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论