1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 06:54:39 -04:00

Remote source: corrected worker handling

This commit is contained in:
f4exb
2021-12-07 05:58:17 +01:00
parent f1059bd547
commit 3cb22c8b8a
3 changed files with 58 additions and 25 deletions
@@ -35,7 +35,9 @@ RemoteSourceSource::RemoteSourceSource() :
}
RemoteSourceSource::~RemoteSourceSource()
{}
{
stop();
}
void RemoteSourceSource::pull(SampleVector::iterator begin, unsigned int nbSamples)
{
@@ -105,7 +107,7 @@ void RemoteSourceSource::stop()
{
stopWorker();
m_sourceWorker->deleteLater();
m_sourceWorker = 0;
m_sourceWorker = nullptr;
}
m_running = false;
@@ -276,4 +278,4 @@ void RemoteSourceSource::applyChannelSettings(int channelSampleRate, bool force)
}
m_channelSampleRate = channelSampleRate;
}
}