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

FreeSWITCH SVN anthm at freeswitch.org
Thu Apr 9 14:17:52 PDT 2009


Author: anthm
Date: Thu Apr  9 16:17:52 2009
New Revision: 12973

Log:
add more specific checks to new macro just to be safe

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

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	Thu Apr  9 16:17:52 2009
@@ -430,7 +430,7 @@
 
 static inline switch_bool_t switch_core_codec_ready(switch_codec_t *codec)
 {
-	return (codec->flags & SWITCH_CODEC_FLAG_READY) ? SWITCH_TRUE : SWITCH_FALSE;
+	return (codec && codec->implementation && (codec->flags & SWITCH_CODEC_FLAG_READY)) ? SWITCH_TRUE : SWITCH_FALSE;
 }
 
 



More information about the Freeswitch-svn mailing list