From d6519d7133c05ceac53fbfa8a98e2828b4790b45 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 3 Feb 2018 17:26:24 +0100 Subject: [PATCH] SSM modulator: lock mutex when size of magnitude AGC is changed --- plugins/channeltx/modssb/ssbmod.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/channeltx/modssb/ssbmod.cpp b/plugins/channeltx/modssb/ssbmod.cpp index 57685f8ce..02615dee8 100644 --- a/plugins/channeltx/modssb/ssbmod.cpp +++ b/plugins/channeltx/modssb/ssbmod.cpp @@ -728,7 +728,9 @@ void SSBMod::applySettings(const SSBModSettings& settings, bool force) if ((settings.m_agcTime != m_settings.m_agcTime) || (settings.m_agcOrder != m_settings.m_agcOrder) || force) { + m_settingsMutex.lock(); m_inAGC.resize(settings.m_agcTime, settings.m_agcOrder); + m_settingsMutex.unlock(); } if ((settings.m_agcThresholdEnable != m_settings.m_agcThresholdEnable) || force)