1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

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

View File

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