diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-03-25 18:21:12 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-03-25 18:21:12 +0100 |
commit | 887d270a8327da46a89d8e5375f172db778f0ff9 (patch) | |
tree | 449d2f0c39ea121490e013d9a9ab221ccdcdd5a2 /src/GainControl.cpp | |
parent | f9e0a5c8eef355e14e276a7456ca020a11f24924 (diff) | |
download | dabmod-887d270a8327da46a89d8e5375f172db778f0ff9.tar.gz dabmod-887d270a8327da46a89d8e5375f172db778f0ff9.tar.bz2 dabmod-887d270a8327da46a89d8e5375f172db778f0ff9.zip |
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.
Diffstat (limited to 'src/GainControl.cpp')
-rw-r--r-- | src/GainControl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GainControl.cpp b/src/GainControl.cpp index 9eb1678..f363d20 100644 --- a/src/GainControl.cpp +++ b/src/GainControl.cpp @@ -69,6 +69,8 @@ GainControl::GainControl(size_t framesize, RC_ADD_PARAMETER(digital, "Digital Gain"); RC_ADD_PARAMETER(mode, "Gainmode (fix|max|var)"); RC_ADD_PARAMETER(var, "Variance setting for gainmode var (default: 4)"); + + start_pipeline_thread(); } GainControl::~GainControl() |