summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-20 22:12:48 -0800
committerChris Robinson <[email protected]>2012-02-20 22:12:48 -0800
commit45b9cbe2b3328f108855c23f4e8d70f11bbac095 (patch)
treedc7c39996f5dca294061d3355b3a53900dba13fb /Alc
parent14912229b1e433842077ac0fd483f0bebb9aafbd (diff)
Only probe for devices when a backend is loaded
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index da5aa257..9a2e5b74 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -749,10 +749,10 @@ static void ProbeList(ALCchar **list, size_t *listsize, enum DevProbe type)
*list = NULL;
*listsize = 0;
- if(type == CAPTURE_DEVICE_PROBE)
- CaptureBackend.Probe(type);
- else
+ if(type == ALL_DEVICE_PROBE && PlaybackBackend.Probe)
PlaybackBackend.Probe(type);
+ else if(type == CAPTURE_DEVICE_PROBE && CaptureBackend.Probe)
+ CaptureBackend.Probe(type);
UnlockLists();
}