aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 9fa7135d..24ebeef6 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -641,8 +641,20 @@ static void alc_initconfig(void)
}
}
- for(i = 0;BackendList[i].Init;i++)
- BackendList[i].Init(&BackendList[i].Funcs);
+ i = 0;
+ while(BackendList[i].Init)
+ {
+ if(BackendList[i].Init(&BackendList[i].Funcs))
+ i++;
+ else
+ {
+ int n = i;
+ do {
+ BackendList[n] = BackendList[n+1];
+ ++n;
+ } while(BackendList[n].Init);
+ }
+ }
BackendLoopback.Init(&BackendLoopback.Funcs);
str = GetConfigValue(NULL, "excludefx", "");