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

Always delete BasebandSampleSink::MsgThreadedSink on return of processing

This commit is contained in:
f4exb 2018-03-06 08:40:46 +01:00
parent 9dacbb6d83
commit 60568de298

View File

@ -77,9 +77,8 @@ ThreadedBasebandSampleSink::ThreadedBasebandSampleSink(BasebandSampleSink* sampl
m_basebandSampleSink->moveToThread(m_thread);
m_threadedBasebandSampleSinkFifo->moveToThread(m_thread);
BasebandSampleSink::MsgThreadedSink *msg = BasebandSampleSink::MsgThreadedSink::create(m_thread); // inform of the new thread
if (!m_basebandSampleSink->handleMessage(*msg)) {
delete msg;
}
m_basebandSampleSink->handleMessage(*msg);
delete msg;
//m_sampleFifo.moveToThread(m_thread);
//connect(&m_sampleFifo, SIGNAL(dataReady()), this, SLOT(handleData()));
//m_sampleFifo.setSize(262144);