From 887d270a8327da46a89d8e5375f172db778f0ff9 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 25 Mar 2017 18:21:12 +0100 Subject: Fix race condition for PipelinedModCodec thread startup The thread could start before the vtable containing the subclass function is ready, leading to a crash because the thread calls a pure virtual function. --- src/FIRFilter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/FIRFilter.cpp') diff --git a/src/FIRFilter.cpp b/src/FIRFilter.cpp index 0e85e0f..4296822 100644 --- a/src/FIRFilter.cpp +++ b/src/FIRFilter.cpp @@ -83,6 +83,8 @@ FIRFilter::FIRFilter(const std::string& taps_file) : RC_ADD_PARAMETER(tapsfile, "Filename containing filter taps. When written to, the new file gets automatically loaded."); load_filter_taps(m_taps_file); + + start_pipeline_thread(); } void FIRFilter::load_filter_taps(const std::string &tapsFile) -- cgit v1.2.3