]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add assert
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Nov 2007 00:50:10 +0000 (00:50 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Nov 2007 00:50:10 +0000 (00:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6182 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_io.c

index 229580f4b40dc6fc9cdaa8f5bdc7fde118e78ab2..8006663a078e4f52b20625b5898ddd11c7cd6f50 100644 (file)
@@ -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;
        }