summaryrefslogtreecommitdiffstats
path: root/Alc/pulseaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-08-04 04:11:38 -0700
committerChris Robinson <[email protected]>2010-08-04 04:11:38 -0700
commit22cc5af1fe1227af67807c8b1928f69fe97488b3 (patch)
treeb5a2568afff1cb1db9684fda73add446f1d98808 /Alc/pulseaudio.c
parent0dc3f1984e969a63f20a91dd980d0fc56fdf0b37 (diff)
pa_context_errno can return a positive value
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r--Alc/pulseaudio.c1
1 files changed, 1 insertions, 0 deletions
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;
}