Skip to content

Commit

Permalink
ScopeVis: fixed setNbStreams method to allocate the memory lines on a…
Browse files Browse the repository at this point in the history
…ll streams. Fixes #872
  • Loading branch information
f4exb committed Jun 23, 2021
1 parent 6662882 commit c4cef5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdrbase/dsp/scopevis.h
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,11 @@ class SDRBASE_API ScopeVis : public QObject {
void setNbStreams(uint32_t nbStreams)
{
m_traceBackBuffersStreams.resize(nbStreams);

for (unsigned int s = 0; s < m_traceBackBuffersStreams.size(); s++) {
m_traceBackBuffersStreams[s].resize(m_memSize);
}

resize(m_traceSize);
}

Expand Down

0 comments on commit c4cef5f

Please sign in to comment.