[Freeswitch-svn] [commit] r9231 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Wed Aug 6 19:25:24 EDT 2008
Author: anthm
Date: Wed Aug 6 19:25:24 2008
New Revision: 9231
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
Log:
update
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Wed Aug 6 19:25:24 2008
@@ -626,8 +626,12 @@
if (tech_pvt->read_frame.datalen > 0) {
size_t bytes = 0;
int frames = 1;
-
+
if (!switch_test_flag((&tech_pvt->read_frame), SFF_CNG)) {
+ if (!tech_pvt->read_codec.implementation) {
+ *frame = NULL;
+ return SWITCH_STATUS_GENERR;
+ }
if ((bytes = tech_pvt->read_codec.implementation->encoded_bytes_per_frame)) {
frames = (tech_pvt->read_frame.datalen / bytes);
}
More information about the Freeswitch-svn
mailing list