summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2014-12-29 11:09:06 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2014-12-29 11:10:10 -0800
commit0324a7dbb016b3b879b305f22fd3d493557bc9d8 (patch)
tree96a819d529a789df193f67a18307b10acad52746
parentb508945c8096a778a171ee70fe769d97924e4978 (diff)
blocks/tagged_stream_multiply_length: Fix tag duplication issues
ninput_items[0] can be larger than noutput_items and so tags between [nitems_read(0)+n_output_items -> nitems_read(0)+ninput_items(0) ) will be added once in that iteration and then again in the next ones (possibly several times over) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--gr-blocks/lib/tagged_stream_multiply_length_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/tagged_stream_multiply_length_impl.cc b/gr-blocks/lib/tagged_stream_multiply_length_impl.cc
index b9136151fa..e9699d28f5 100644
--- a/gr-blocks/lib/tagged_stream_multiply_length_impl.cc
+++ b/gr-blocks/lib/tagged_stream_multiply_length_impl.cc
@@ -69,7 +69,7 @@ namespace gr {
// move and update tags
std::vector<tag_t> tags;
- get_tags_in_range(tags, 0, nitems_read(0), nitems_read(0)+ninput_items[0]);
+ get_tags_in_range(tags, 0, nitems_read(0), nitems_read(0)+noutput_items);
for(size_t i=0; i<tags.size(); i++){
if(pmt::eqv( tags[i].key , d_lengthtag)){
// propagate with value update (scaled)