diff options
author | Chris Robinson <[email protected]> | 2012-02-20 22:12:48 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-20 22:12:48 -0800 |
commit | 45b9cbe2b3328f108855c23f4e8d70f11bbac095 (patch) | |
tree | dc7c39996f5dca294061d3355b3a53900dba13fb | |
parent | 14912229b1e433842077ac0fd483f0bebb9aafbd (diff) |
Only probe for devices when a backend is loaded
-rw-r--r-- | Alc/ALc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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(); } |