diff options
author | Chris Robinson <[email protected]> | 2009-09-23 01:33:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-23 01:33:58 -0700 |
commit | 201b108a543c8d0472341918ffac012ad1d94a69 (patch) | |
tree | 029e5f940ee83554720c92ef71ab667ab82998ed /Alc/pulseaudio.c | |
parent | bdbdbcea26d4a12d4d3f76ad3724f2ad12a55358 (diff) |
Attempt to reload backend libs when probing, if they didn't initially load
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 85f0bcb2..8cc87606 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -631,7 +631,7 @@ BackendFuncs pulse_funcs = { //{{{ void alc_pulse_init(BackendFuncs *func_list) //{{{ { - *func_list = pulse_funcs; + if(func_list) *func_list = pulse_funcs; #ifdef _WIN32 pa_handle = LoadLibrary("libpulse-0.dll"); @@ -726,8 +726,8 @@ void alc_pulse_deinit(void) //{{{ void alc_pulse_probe(int type) //{{{ { - if(!pa_handle) - return; + if(!pa_handle) alc_pulse_init(NULL); + if(!pa_handle) return; if(type == DEVICE_PROBE) AppendDeviceList(pulse_device); |