]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5331
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 24 Apr 2013 16:32:58 +0000 (11:32 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 24 Apr 2013 16:33:18 +0000 (11:33 -0500)
src/switch_loadable_module.c

index c1b37abbd1ffd01dde4406a5afa61aacb99a816e..6f4b8638a7c90c66cd782b0d208153ec382140df 100644 (file)
@@ -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;