aboutsummaryrefslogtreecommitdiffstats
path: root/src/GainControl.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 07:43:46 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 07:43:46 +0100
commitdb5e90c258f94e65df70830ab1c053debfa15cdb (patch)
tree9ac3a190dec448ae72101dc1a625d7bb3bc0df56 /src/GainControl.cpp
parentd929ecf1e0196161acb5a106761e8fad7040e9d3 (diff)
downloaddabmod-db5e90c258f94e65df70830ab1c053debfa15cdb.tar.gz
dabmod-db5e90c258f94e65df70830ab1c053debfa15cdb.tar.bz2
dabmod-db5e90c258f94e65df70830ab1c053debfa15cdb.zip
Avoid race condition on teardown of pipelined plugins
Diffstat (limited to 'src/GainControl.cpp')
-rw-r--r--src/GainControl.cpp4
1 files changed, 4 insertions, 0 deletions
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)
{