From 55d33960d506806cd238ba3f770a676f14618403 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 26 Sep 2019 07:51:41 +0200 Subject: [PATCH] DSP device MIMO engine fixes (1) --- sdrbase/dsp/dspdevicemimoengine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdrbase/dsp/dspdevicemimoengine.cpp b/sdrbase/dsp/dspdevicemimoengine.cpp index a5679cfdd..d4fdd6e9f 100644 --- a/sdrbase/dsp/dspdevicemimoengine.cpp +++ b/sdrbase/dsp/dspdevicemimoengine.cpp @@ -283,6 +283,10 @@ void DSPDeviceMIMOEngine::workSampleSinkFifos() while (sampleFifo->dataAvailable()) { + vPart1Begin.clear(); + vPart1End.clear(); + vPart2Begin.clear(); + vPart2End.clear(); sampleFifo->readSync(vPart1Begin, vPart1End, vPart2Begin, vPart2End); for (unsigned int stream = 0; stream < data.size(); stream++) @@ -294,7 +298,7 @@ void DSPDeviceMIMOEngine::workSampleSinkFifos() } if (vPart2Begin[stream] != vPart2End[stream]) { - m_vectorBuffer.write(begin + vPart2Begin[stream], begin + vPart2End[stream], false); + m_vectorBuffer.write(begin + vPart2Begin[stream], begin + vPart2End[stream]); } SampleVector::iterator vbegin, vend;