diff options
author | Chris Robinson <[email protected]> | 2012-03-01 09:22:37 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-03-01 09:22:37 -0800 |
commit | 51e6786f31e669325f4fe5b63fdb9fed6d4b7f06 (patch) | |
tree | 66c763678804f34cca4eab21660421c8352339e3 /Alc/backends/pulseaudio.c | |
parent | 50ef19720d5e1f30e9e87b1ca9ab165eb6dcbc34 (diff) |
Set the func list after successfully connecting to PulseAudio
Diffstat (limited to 'Alc/backends/pulseaudio.c')
-rw-r--r-- | Alc/backends/pulseaudio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c index 0b1d9521..80fdea55 100644 --- a/Alc/backends/pulseaudio.c +++ b/Alc/backends/pulseaudio.c @@ -1402,6 +1402,7 @@ ALCboolean alc_pulse_init(BackendFuncs *func_list) //{{{ context = connect_context(loop, AL_TRUE); if(context) { + *func_list = pulse_funcs; ret = ALC_TRUE; pa_context_disconnect(context); @@ -1414,8 +1415,6 @@ ALCboolean alc_pulse_init(BackendFuncs *func_list) //{{{ pa_threaded_mainloop_free(loop); } - if(ret != ALC_FALSE) - *func_list = pulse_funcs; return ret; } //}}} |