From 45b9cbe2b3328f108855c23f4e8d70f11bbac095 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 20 Feb 2012 22:12:48 -0800 Subject: Only probe for devices when a backend is loaded --- Alc/ALc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc') 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(); } -- cgit v1.2.3