From c57d25652e6474758594544e8c8b5b6e05a67084 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Fri, 21 Sep 2018 17:41:50 +0100 Subject: [PATCH] Unreference the pa stream when finished with it, so that it the sink can go idle. --- audio_pa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audio_pa.c b/audio_pa.c index aec4d992..06144c90 100644 --- a/audio_pa.c +++ b/audio_pa.c @@ -291,6 +291,7 @@ static void stop(void) { audio_occupancy = 0; // debug(1, "finish with stream"); + pa_stream_unref(stream); pa_stream_disconnect(stream); }