From 22cc5af1fe1227af67807c8b1928f69fe97488b3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 4 Aug 2010 04:11:38 -0700 Subject: pa_context_errno can return a positive value --- Alc/pulseaudio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 44ae427a..ee1499cf 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -600,6 +600,7 @@ static pa_context *connect_context(pa_threaded_mainloop *loop) if(!PA_CONTEXT_IS_GOOD(state)) { err = ppa_context_errno(context); + if(err > 0) err = -err; break; } -- cgit v1.2.3