From ba7a5f0721b0c0ce4e907c1137de1e82746e0223 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Tue, 2 Oct 2012 13:03:40 -0400 Subject: core: update max_buffer_size after buffer is actually allocated. --- gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit