From 55fe285c56055497725a619e5b9acbd6dec57e23 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 4 May 2020 16:05:47 +0200 Subject: Fix teardown after silence detector trigger --- src/GSTInput.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/GSTInput.cpp') diff --git a/src/GSTInput.cpp b/src/GSTInput.cpp index aa46003..a2401cb 100644 --- a/src/GSTInput.cpp +++ b/src/GSTInput.cpp @@ -271,6 +271,10 @@ void GSTInput::process() GSTInput::~GSTInput() { m_running = false; + + // Ensures push() doesn't get blocked + m_gst_data.samplequeue.clear(); + if (m_thread.joinable()) { m_thread.join(); } -- cgit v1.2.3