aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 82da5143..4c6c9049 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1290,15 +1290,16 @@ static void alc_deinit(void)
************************************************/
static void ProbeDevices(al_string *list, struct BackendInfo *backendinfo, enum DevProbe type)
{
- ALCbackendFactory *factory;
-
DO_INITCONFIG();
LockLists();
alstr_clear(list);
- if((factory=backendinfo->getFactory()) != NULL)
+ if(backendinfo->getFactory)
+ {
+ ALCbackendFactory *factory = backendinfo->getFactory();
V(factory,probe)(type);
+ }
UnlockLists();
}