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/alsa.c | |
parent | bdbdbcea26d4a12d4d3f76ad3724f2ad12a55358 (diff) |
Attempt to reload backend libs when probing, if they didn't initially load
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r-- | Alc/alsa.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -775,7 +775,7 @@ void alc_alsa_init(BackendFuncs *func_list) { char *str; - *func_list = alsa_funcs; + if(func_list) *func_list = alsa_funcs; #ifdef HAVE_DLFCN_H alsa_handle = dlopen("libasound.so.2", RTLD_NOW); @@ -877,8 +877,8 @@ void alc_alsa_deinit(void) #ifdef HAVE_DLFCN_H if(alsa_handle) dlclose(alsa_handle); - alsa_handle = NULL; #endif + alsa_handle = NULL; } void alc_alsa_probe(int type) @@ -891,8 +891,8 @@ void alc_alsa_probe(int type) char name[128]; ALuint i; - if(!alsa_handle) - return; + if(!alsa_handle) alc_alsa_init(NULL); + if(!alsa_handle) return; psnd_ctl_card_info_malloc(&info); psnd_pcm_info_malloc(&pcminfo); |