git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5483 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-06-28 14:47:58 +00:00
parent aca9dbe8ee
commit 906bb70654
1 changed files with 4 additions and 1 deletions

View File

@ -1226,6 +1226,8 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
last = name = next = cur = buf; last = name = next = cur = buf;
for (;;) { for (;;) {
if (!next) { if (!next) {
break; break;
} }
@ -1233,10 +1235,11 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
*p++ = '\0'; *p++ = '\0';
} }
next = p; next = p;
if (cur != name) { if (cur != name) {
if (strchr(cur, 'i')) { if (strchr(cur, 'i')) {
interval = atoi(cur); interval = atoi(cur);
} else if (strchr(cur, 'k' || strchr(cur, 'h'))) { } else if ((strchr(cur, 'k') || strchr(cur, 'h'))) {
rate = atoi(cur); rate = atoi(cur);
} }
} }