diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-06-27 18:50:41 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-06-27 18:50:41 -0400 |
commit | fd3b70ee5c9456a45f733fd32d9d96293b1d5261 (patch) | |
tree | a222398b09cf98253fdc9275eb8ab282c66fd56c /gnuradio-runtime | |
parent | 071e8f8acdb7e38540d6d78141cae8ac64ade052 (diff) |
runtime: makes sure if capping to max_noutput_items with output_multiple that the value is always an output_multiple.
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r-- | gnuradio-runtime/lib/block_executor.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/block_executor.cc b/gnuradio-runtime/lib/block_executor.cc index b0eb2eccee..7a14c17431 100644 --- a/gnuradio-runtime/lib/block_executor.cc +++ b/gnuradio-runtime/lib/block_executor.cc @@ -189,7 +189,7 @@ namespace gr { { int noutput_items; int max_items_avail; - int max_noutput_items = d_max_noutput_items; + int max_noutput_items; int new_alignment = 0; int alignment_state = -1; @@ -198,6 +198,8 @@ namespace gr { LOG(*d_log << std::endl << m); + max_noutput_items = round_down(d_max_noutput_items, m->output_multiple()); + if(d->done()){ assert(0); return DONE; |