mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 02:18:30 +01:00
bugfix
This commit is contained in:
parent
36adc102ee
commit
c5f30f6d6a
@ -42,18 +42,18 @@ namespace dsp::routing {
|
||||
}
|
||||
|
||||
int run() {
|
||||
int count = _in->read();
|
||||
int count = base_type::_in->read();
|
||||
if (count < 0) { return -1; }
|
||||
|
||||
for (const auto& stream : streams) {
|
||||
memcpy(stream->writeBuf, _in->readBuf, count * sizeof(T));
|
||||
memcpy(stream->writeBuf, base_type::_in->readBuf, count * sizeof(T));
|
||||
if (!stream->swap(count)) {
|
||||
_in->flush();
|
||||
base_type::_in->flush();
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
_in->flush();
|
||||
base_type::_in->flush();
|
||||
|
||||
return count;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user