From ce21d41785df9f7e8e0639d7e7f31cb3db755165 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 8 Nov 2007 00:50:10 +0000 Subject: [PATCH] add assert git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6182 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 229580f4b4..8006663a07 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -136,6 +136,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi goto done; } + assert((*frame)->codec != NULL); if ((session->read_codec && (*frame)->codec && session->read_codec->implementation != (*frame)->codec->implementation)) { need_codec = TRUE; }