1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 15:51:47 -05:00

Frequency Scanner: initialize pointer to FrequencyScanner. Fixes #2262

This commit is contained in:
f4exb 2024-10-04 20:50:36 +02:00
parent 1a55e32865
commit 9d1160e7cd
3 changed files with 4 additions and 3 deletions

View File

@ -153,7 +153,7 @@ void FreqScanner::start()
qDebug("FreqScanner::start");
m_thread = new QThread();
m_basebandSink = new FreqScannerBaseband();
m_basebandSink = new FreqScannerBaseband(this);
m_basebandSink->setFifoLabel(QString("%1 [%2:%3]")
.arg(m_channelId)
.arg(m_deviceAPI->getDeviceSetIndex())

View File

@ -27,7 +27,8 @@
MESSAGE_CLASS_DEFINITION(FreqScannerBaseband::MsgConfigureFreqScannerBaseband, Message)
FreqScannerBaseband::FreqScannerBaseband() :
FreqScannerBaseband::FreqScannerBaseband(FreqScanner *freqScanner) :
m_freqScanner(freqScanner),
m_messageQueueToGUI(nullptr)
{
qDebug("FreqScannerBaseband::FreqScannerBaseband");

View File

@ -63,7 +63,7 @@ public:
{ }
};
FreqScannerBaseband();
FreqScannerBaseband(FreqScanner *freqScanner);
~FreqScannerBaseband();
void reset();
void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);