Add mutex to atomize start and setting of sample rate

pull/803/head
Jon Beniston 2021-03-08 22:41:00 +00:00
rodzic f6b3512951
commit 1197e43c47
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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();