diff options
author | Tom Rondeau | 2012-10-02 13:03:40 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-10-02 13:12:17 -0400 |
commit | ba7a5f0721b0c0ce4e907c1137de1e82746e0223 (patch) | |
tree | d51ab1beb242e3e13f7fbee4f88b876e30a3172f | |
parent | 0ecb4d407b888b8631afa5a7c0b8c4f45e6c16c2 (diff) | |
download | gnuradio-ba7a5f0721b0c0ce4e907c1137de1e82746e0223.tar.gz gnuradio-ba7a5f0721b0c0ce4e907c1137de1e82746e0223.tar.bz2 gnuradio-ba7a5f0721b0c0ce4e907c1137de1e82746e0223.zip |
core: update max_buffer_size after buffer is actually allocated.
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc b/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc index fb375b0f3..15f07e26b 100644 --- a/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc +++ b/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc @@ -88,6 +88,9 @@ gr_flat_flowgraph::allocate_block_detail(gr_basic_block_sptr block) if (GR_FLAT_FLOWGRAPH_DEBUG) std::cout << "Allocated buffer for output " << block << ":" << i << std::endl; detail->set_output(i, buffer); + + // Update the block's max_output_buffer based on what was actually allocated. + block->set_max_output_buffer(i, buffer->bufsize()); } return detail; |