Remove backends that fail to initialize
This commit is contained in:
parent
8148626ba3
commit
057fef88ae
16
Alc/ALc.c
16
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", "");
|
||||
|
Loading…
Reference in New Issue
Block a user