From 031757e950e0ddc68dc76bb1cf4fd11d5f28afcb Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 17 Oct 2008 23:00:23 +0000 Subject: [PATCH] fix FSCORE-206 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10056 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;