From c4c2883c61a6b1c736b66cb812d6fa30c876e5a0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 24 Apr 2013 11:32:58 -0500 Subject: [PATCH] FS-5331 --- src/switch_loadable_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index c1b37abbd1..6f4b8638a7 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -2025,7 +2025,7 @@ static void switch_loadable_module_sort_codecs(const switch_codec_implementation #endif } - if (this_ptime != sorted_ptime) { + if (i > 0 && strcasecmp(array[i]->iananame, array[i-1]->iananame) && this_ptime != sorted_ptime) { int j; int swapped = 0;