Add mutex to atomize start and setting of sample rate

This commit is contained in:
Jon Beniston 2021-03-08 22:41:00 +00:00
parent f6b3512951
commit 1197e43c47
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ bool FileRecord::handleMessage(const Message& message)
{
if (DSPSignalNotification::match(message))
{
QMutexLocker mutexLocker(&m_mutex);
DSPSignalNotification& notif = (DSPSignalNotification&) message;
quint32 sampleRate = notif.getSampleRate();
qint64 centerFrequency = notif.getCenterFrequency();