mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -05:00
Properly traverse list
This commit is contained in:
parent
865dbfe682
commit
d1ae8fa17d
@ -140,7 +140,8 @@ cfg_decoder_add_match(struct cfg_decoder *d, const char *ext,
|
|||||||
d2 = cfg_decoder_find(ext);
|
d2 = cfg_decoder_find(ext);
|
||||||
e = NULL;
|
e = NULL;
|
||||||
if (d2) {
|
if (d2) {
|
||||||
while (NULL != (e2 = TAILQ_FIRST(&d2->exts))) {
|
e2 = TAILQ_FIRST(&d2->exts);
|
||||||
|
while (e2) {
|
||||||
if (0 == strcasecmp(e2->ext, ext)) {
|
if (0 == strcasecmp(e2->ext, ext)) {
|
||||||
log_notice("%s: relocating match from %s to %s",
|
log_notice("%s: relocating match from %s to %s",
|
||||||
ext, d2->name, d->name);
|
ext, d2->name, d->name);
|
||||||
@ -148,6 +149,7 @@ cfg_decoder_add_match(struct cfg_decoder *d, const char *ext,
|
|||||||
e = e2;
|
e = e2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
e2 = TAILQ_NEXT(e2, entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!e) {
|
if (!e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user