[Freeswitch-svn] [commit] r7686 - freeswitch/trunk/src/include

Freeswitch SVN mikej at freeswitch.org
Mon Feb 18 17:46:19 EST 2008


Author: mikej
Date: Mon Feb 18 17:46:19 2008
New Revision: 7686

Modified:
   freeswitch/trunk/src/include/switch_loadable_module.h

Log:
don't seg when loading codecs

Modified: freeswitch/trunk/src/include/switch_loadable_module.h
==============================================================================
--- freeswitch/trunk/src/include/switch_loadable_module.h	(original)
+++ freeswitch/trunk/src/include/switch_loadable_module.h	Mon Feb 18 17:46:19 2008
@@ -309,7 +309,7 @@
 #define SWITCH_ADD_CODEC(codec_int, int_name) \
 	for (;;) { \
 	codec_int = (switch_codec_interface_t *)switch_loadable_module_create_interface(*module_interface, SWITCH_CODEC_INTERFACE); \
-	codec_int->interface_name = int_name; \
+	codec_int->interface_name = switch_core_strdup(pool, int_name); \
 	break; \
 	}
 
@@ -358,7 +358,7 @@
 		impl->codec_type = codec_type;
 		impl->ianacode = ianacode;
 		impl->iananame = switch_core_strdup(pool, iananame);
-		impl->fmtp = fmtp;
+		impl->fmtp = switch_core_strdup(pool, fmtp);
 		impl->samples_per_second = samples_per_second;
 		impl->actual_samples_per_second = actual_samples_per_second;
 		impl->bits_per_second = bits_per_second;



More information about the Freeswitch-svn mailing list