From 4d9a368f96b14ed20bffdc6700a077b1fe875487 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 8 Jan 2010 01:43:27 -0800 Subject: Suppress connection refused errors Since that just typically means the server isn't running --- Alc/pulseaudio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Alc') 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; -- cgit v1.2.3