add assert

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6182 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-11-08 00:50:10 +00:00
parent 2e3d02ef5c
commit ce21d41785
1 changed files with 1 additions and 0 deletions

View 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;
}