1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-04 07:51:14 -05:00

SDRdaemon: channel sink: activate sender thread

This commit is contained in:
f4exb 2018-08-21 17:38:40 +02:00
parent 84178789e4
commit 5bb3022c22

View File

@ -189,15 +189,29 @@ void SDRDaemonChannelSink::feed(const SampleVector::const_iterator& begin, const
void SDRDaemonChannelSink::start()
{
qDebug("SDRDaemonChannelSink::start");
memset((void *) &m_currentMetaFEC, 0, sizeof(SDRDaemonMetaDataFEC));
if (m_running) { stop(); }
if (m_running) {
stop();
}
m_sinkThread = new SDRDaemonChannelSinkThread(&m_dataQueue, m_cm256p);
m_sinkThread->startWork();
m_running = true;
}
void SDRDaemonChannelSink::stop()
{
qDebug("SDRDaemonChannelSink::stop");
if (m_sinkThread != 0)
{
m_sinkThread->stopWork();
delete m_sinkThread;
m_sinkThread = 0;
}
m_running = false;
}