diff options
author | Chris Robinson <[email protected]> | 2011-08-17 06:15:43 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-17 06:15:43 -0700 |
commit | 057fef88ae75a8024fb8561a13541431f5c2bda5 (patch) | |
tree | f030ae57eca7a65ea05f33486fe2dc678b622829 /Alc | |
parent | 8148626ba36456a5aed2b3e75bbe32f9e7ab0249 (diff) |
Remove backends that fail to initialize
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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", ""); |