From: Anthony Minessale Date: Fri, 17 Oct 2008 23:00:23 +0000 (+0000) Subject: fix FSCORE-206 X-Git-Tag: v1.0.2~774 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=031757e950e0ddc68dc76bb1cf4fd11d5f28afcb;p=thirdparty%2Ffreeswitch.git fix FSCORE-206 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10056 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 95f8f5c965..54cb144507 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -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;