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

Tx: new handling of multiple channel sources. Fixed segfault

This commit is contained in:
f4exb 2018-01-02 04:01:01 +01:00
parent df1e09fdb7
commit f30edc983d

View File

@ -621,9 +621,7 @@ void DSPDeviceSinkEngine::checkNumberOfBasebandSources()
m_multipleSourcesDivisionFactor = 1<<nbSources; m_multipleSourcesDivisionFactor = 1<<nbSources;
} }
if (nbSources == 0) { if (nbSources > 1) {
disconnect(sampleFifo, SIGNAL(dataWrite(int)), this, SLOT(handleData(int)));
} else if (nbSources > 1) {
connect(sampleFifo, SIGNAL(dataWrite(int)), this, SLOT(handleData(int)), Qt::QueuedConnection); connect(sampleFifo, SIGNAL(dataWrite(int)), this, SLOT(handleData(int)), Qt::QueuedConnection);
} }