From db5e90c258f94e65df70830ab1c053debfa15cdb Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 14 Jan 2018 07:43:46 +0100 Subject: Avoid race condition on teardown of pipelined plugins --- src/GainControl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/GainControl.cpp') diff --git a/src/GainControl.cpp b/src/GainControl.cpp index dbb9464..5657fc2 100644 --- a/src/GainControl.cpp +++ b/src/GainControl.cpp @@ -73,6 +73,10 @@ GainControl::GainControl(size_t framesize, start_pipeline_thread(); } +GainControl::~GainControl() +{ + stop_pipeline_thread(); +} int GainControl::internal_process(Buffer* const dataIn, Buffer* dataOut) { -- cgit v1.2.3