Only probe for devices when a backend is loaded

This commit is contained in:
Chris Robinson 2012-02-20 22:12:48 -08:00
parent 14912229b1
commit 45b9cbe2b3

View File

@ -749,10 +749,10 @@ static void ProbeList(ALCchar **list, size_t *listsize, enum DevProbe type)
*list = NULL; *list = NULL;
*listsize = 0; *listsize = 0;
if(type == CAPTURE_DEVICE_PROBE) if(type == ALL_DEVICE_PROBE && PlaybackBackend.Probe)
CaptureBackend.Probe(type);
else
PlaybackBackend.Probe(type); PlaybackBackend.Probe(type);
else if(type == CAPTURE_DEVICE_PROBE && CaptureBackend.Probe)
CaptureBackend.Probe(type);
UnlockLists(); UnlockLists();
} }