mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-27 22:59:28 -04:00
Down channelizer: prevent negative sample rate
This commit is contained in:
parent
c41cf68d60
commit
fa554d8244
@ -89,6 +89,12 @@ void DownChannelizer::feed(const SampleVector::const_iterator& begin, const Samp
|
||||
|
||||
void DownChannelizer::setChannelization(int requestedSampleRate, qint64 requestedCenterFrequency)
|
||||
{
|
||||
if (requestedSampleRate < 0)
|
||||
{
|
||||
qWarning("DownChannelizer::setChannelization: wrong sample rate requested: %d", requestedSampleRate);
|
||||
return;
|
||||
}
|
||||
|
||||
m_requestedOutputSampleRate = requestedSampleRate;
|
||||
m_requestedCenterFrequency = requestedCenterFrequency;
|
||||
applyChannelization();
|
||||
|
Loading…
Reference in New Issue
Block a user