[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/01: blocks/tagged_stream_multiply_length
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/01: blocks/tagged_stream_multiply_length: Fix tag duplication issues |
Date: |
Mon, 29 Dec 2014 19:40:11 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 0324a7dbb016b3b879b305f22fd3d493557bc9d8
Author: Sylvain Munaut <address@hidden>
Date: Mon Dec 29 11:09:06 2014 -0800
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 <address@hidden>
---
gr-blocks/lib/tagged_stream_multiply_length_impl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gr-blocks/lib/tagged_stream_multiply_length_impl.cc
b/gr-blocks/lib/tagged_stream_multiply_length_impl.cc
index b913615..e9699d2 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)