From fe29bc4f45d2253d0d9188fe0685959ca72202fa Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 29 Jul 2015 01:27:07 -0700 Subject: [PATCH] pulseaudio: fix cork logic --- src/pulseaudio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulseaudio.cpp b/src/pulseaudio.cpp index 5612318..4ea1309 100644 --- a/src/pulseaudio.cpp +++ b/src/pulseaudio.cpp @@ -746,7 +746,7 @@ static int outstream_pause_pa(SoundIoPrivate *si, SoundIoOutStreamPrivate *os, b pa_threaded_mainloop_lock(sipa->main_loop); - if (pause != !pa_stream_is_corked(ospa->stream)) { + if (pause != pa_stream_is_corked(ospa->stream)) { pa_operation *op = pa_stream_cork(ospa->stream, pause, NULL, NULL); if (!op) return SoundIoErrorStreaming; @@ -929,7 +929,7 @@ static int instream_pause_pa(SoundIoPrivate *si, SoundIoInStreamPrivate *is, boo pa_threaded_mainloop_lock(sipa->main_loop); - if (pause != !pa_stream_is_corked(ispa->stream)) { + if (pause != pa_stream_is_corked(ispa->stream)) { pa_operation *op = pa_stream_cork(ispa->stream, pause, NULL, NULL); if (!op) return SoundIoErrorStreaming;