Only probe for devices when a backend is loaded
This commit is contained in:
parent
14912229b1
commit
45b9cbe2b3
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user