fix FSCORE-206

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10056 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-10-17 23:00:23 +00:00
parent 8c663f8586
commit 031757e950
1 changed files with 2 additions and 1 deletions

View File

@ -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;