From 1197e43c473cfd54e74dea4dd651f1e1924fdff6 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Mon, 8 Mar 2021 22:41:00 +0000 Subject: [PATCH] Add mutex to atomize start and setting of sample rate --- sdrbase/dsp/filerecord.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrbase/dsp/filerecord.cpp b/sdrbase/dsp/filerecord.cpp index 0b019d6f8..3e149ea8d 100644 --- a/sdrbase/dsp/filerecord.cpp +++ b/sdrbase/dsp/filerecord.cpp @@ -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();