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/VLCInput.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/VLCInput.cpp') diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 7b10d81..0547696 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -125,6 +125,9 @@ VLCInput::~VLCInput() { m_running = false; + // Ensures push() doesn't get blocked + m_samplequeue.clear(); + if (m_thread.joinable()) { m_thread.join(); } -- cgit v1.2.3