[Freeswitch-svn] [commit] r8267 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Mon May 5 20:02:38 EDT 2008


Author: anthm
Date: Mon May  5 20:02:37 2008
New Revision: 8267

Modified:
   freeswitch/trunk/src/switch_loadable_module.c

Log:
fix vid issue

Modified: freeswitch/trunk/src/switch_loadable_module.c
==============================================================================
--- freeswitch/trunk/src/switch_loadable_module.c	(original)
+++ freeswitch/trunk/src/switch_loadable_module.c	Mon May  5 20:02:37 2008
@@ -1276,12 +1276,14 @@
 				for (imp = codec_interface->implementations; imp; imp = imp->next) {
 					uint8_t match = 1;
 
-					if ((uint32_t) (imp->microseconds_per_frame / 1000) != 20) {
-						match = 0;
-					}
-
-					if (match && rate && (uint32_t) imp->samples_per_second != rate) {
-						match = 0;
+					if (imp->codec_type != SWITCH_CODEC_TYPE_VIDEO) {
+						if ((uint32_t) (imp->microseconds_per_frame / 1000) != 20) {
+							match = 0;
+						}
+
+						if (match && rate && (uint32_t) imp->samples_per_second != rate) {
+							match = 0;
+						}
 					}
 
 					if (match) {
@@ -1295,12 +1297,14 @@
 			for (imp = codec_interface->implementations; imp; imp = imp->next) {
 				uint8_t match = 1;
 
-				if (interval && (uint32_t) (imp->microseconds_per_frame / 1000) != interval) {
-					match = 0;
-				}
+				if (imp->codec_type != SWITCH_CODEC_TYPE_VIDEO) {
+					if (interval && (uint32_t) (imp->microseconds_per_frame / 1000) != interval) {
+						match = 0;
+					}
 
-				if (match && rate && (uint32_t) imp->samples_per_second != rate) {
-					match = 0;
+					if (match && rate && (uint32_t) imp->samples_per_second != rate) {
+						match = 0;
+					}
 				}
 
 				if (match) {



More information about the Freeswitch-svn mailing list