diff options
author | Chris Robinson <[email protected]> | 2010-01-08 01:43:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-01-08 01:43:27 -0800 |
commit | 4d9a368f96b14ed20bffdc6700a077b1fe875487 (patch) | |
tree | c036d2b313f1f71cd6fe406fe0aac10bd33e1736 /Alc/pulseaudio.c | |
parent | 43220b604c5aba34829d2f8a15c830801c4dd8d8 (diff) |
Suppress connection refused errors
Since that just typically means the server isn't running
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 0b905d58..4b28ccce 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -486,8 +486,9 @@ static ALCboolean pulse_open(ALCdevice *device, const ALCchar *device_name) //{{ { if(!PA_CONTEXT_IS_GOOD(state)) { - AL_PRINT("Context did not get ready: %s\n", - ppa_strerror(ppa_context_errno(data->context))); + int err = ppa_context_errno(data->context); + if(err != PA_ERR_CONNECTIONREFUSED) + AL_PRINT("Context did not get ready: %s\n", ppa_strerror(err)); ppa_context_unref(data->context); data->context = NULL; |