mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-29 05:22:25 -04:00
SSM modulator: lock mutex when size of magnitude AGC is changed
This commit is contained in:
parent
24080bafd3
commit
d6519d7133
@ -728,7 +728,9 @@ void SSBMod::applySettings(const SSBModSettings& settings, bool force)
|
|||||||
if ((settings.m_agcTime != m_settings.m_agcTime) ||
|
if ((settings.m_agcTime != m_settings.m_agcTime) ||
|
||||||
(settings.m_agcOrder != m_settings.m_agcOrder) || force)
|
(settings.m_agcOrder != m_settings.m_agcOrder) || force)
|
||||||
{
|
{
|
||||||
|
m_settingsMutex.lock();
|
||||||
m_inAGC.resize(settings.m_agcTime, settings.m_agcOrder);
|
m_inAGC.resize(settings.m_agcTime, settings.m_agcOrder);
|
||||||
|
m_settingsMutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((settings.m_agcThresholdEnable != m_settings.m_agcThresholdEnable) || force)
|
if ((settings.m_agcThresholdEnable != m_settings.m_agcThresholdEnable) || force)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user