pulsesrc: fix wrong error check
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 13 Jan 2012 18:11:36 +0000 (18:11 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 13 Jan 2012 18:11:36 +0000 (18:11 +0000)
commitf0ac29113cc88099b6cba0a0883cf17d451ca413
treec45386f24da80c8ff61913f712cfd534e06dc17a
parentf799fb2c90f8d2c640bb049144233dab75a2730f
pulsesrc: fix wrong error check

pa_stream_* functions return negative on error, despite the defines
for error codes being positive.

I only got to repro the error twice, so I'm not sure 100% sure this
fixes the issue (the negative var being uninitialized after returning
from pa_stream_get_latency).
ext/pulse/pulsesrc.c