]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Lets not break video passthru codecs sorry
authorBrian West <brian@freeswitch.org>
Mon, 18 Feb 2008 21:55:28 +0000 (21:55 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 18 Feb 2008 21:55:28 +0000 (21:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7682 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_loadable_module.h

index ab736b0273fa6f3ef3844d0641ce0a03a4874fcd..43b4cbc9be99e983cd21a4bf071434c43c3243d1 100644 (file)
@@ -353,7 +353,7 @@ static inline void switch_core_codec_add_implementation(switch_memory_pool_t *po
                                                         /*! deinitalize a codec handle using this implementation */
                                                         switch_core_codec_destroy_func_t destroy)
 {
-       if (SWITCH_ACCEPTABLE_INTERVAL(microseconds_per_frame / 1000)) {
+       if (codec_type == SWITCH_CODEC_TYPE_VIDEO || SWITCH_ACCEPTABLE_INTERVAL(microseconds_per_frame / 1000)) {
                switch_codec_implementation_t *impl = (switch_codec_implementation_t *) switch_core_alloc(pool, sizeof(*impl));
                impl->codec_type = codec_type;
                impl->ianacode = ianacode;