ADSB demod: do not apply channel sample rate if it is 0. Fixes #1165

This commit is contained in:
f4exb 2022-03-08 00:57:07 +01:00
parent 74497a68a0
commit 82ebab8ac1
1 changed files with 4 additions and 0 deletions

View File

@ -235,6 +235,10 @@ void ADSBDemodSink::applyChannelSettings(int channelSampleRate, int channelFrequ
<< " channelSampleRate: " << channelSampleRate
<< " channelFrequencyOffset: " << channelFrequencyOffset;
if (channelSampleRate == 0) {
return;
}
if ((channelFrequencyOffset != m_channelFrequencyOffset) ||
(channelSampleRate != m_channelSampleRate) || force)
{