mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
PVS-Studio static analysis corrections (3) issue #137
This commit is contained in:
@@ -68,20 +68,12 @@ bool PerseusInput::start()
|
||||
{
|
||||
if (m_running) stop();
|
||||
|
||||
applySettings(m_settings, true);
|
||||
|
||||
// start / stop streaming is done in the thread.
|
||||
|
||||
if ((m_perseusThread = new PerseusThread(m_perseusDescriptor, &m_sampleFifo)) == 0)
|
||||
{
|
||||
qCritical("PerseusInput::start: cannot create thread");
|
||||
stop();
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug("PerseusInput::start: thread created");
|
||||
}
|
||||
m_perseusThread = new PerseusThread(m_perseusDescriptor, &m_sampleFifo);
|
||||
qDebug("PerseusInput::start: thread created");
|
||||
|
||||
applySettings(m_settings, true);
|
||||
|
||||
m_perseusThread->setLog2Decimation(m_settings.m_log2Decim);
|
||||
m_perseusThread->startWork();
|
||||
|
||||
Reference in New Issue
Block a user