diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-10-02 12:18:29 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-10-02 12:18:29 -0400 |
commit | 4f03a54b2b802f0eff6802985ec6479738843c57 (patch) | |
tree | 627730c5a39b28b31db1db41c6384fae28dde9da /gr-blocks/lib/vector_source_X_impl.cc.t | |
parent | d598e49b4ca0a63985c675a12dc78cbc2a8931ee (diff) |
blocks: better handling of srcid with vector_source blocks.
- vector_source now adds the srcid of the tag to the actual tag stream.
- tag_utils' python_to_tag can now be called with just 3 parameters by omitting the srcid; gets filled in with PMT_F.
- updated vector_source_with_tags example to have tags with and without srcid set.
Diffstat (limited to 'gr-blocks/lib/vector_source_X_impl.cc.t')
-rw-r--r-- | gr-blocks/lib/vector_source_X_impl.cc.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/vector_source_X_impl.cc.t b/gr-blocks/lib/vector_source_X_impl.cc.t index 93f672bfb9..cb17c70d63 100644 --- a/gr-blocks/lib/vector_source_X_impl.cc.t +++ b/gr-blocks/lib/vector_source_X_impl.cc.t @@ -106,7 +106,7 @@ namespace gr { optr += size; for(unsigned t = 0; t < d_tags.size(); t++) { add_item_tag(0, nitems_written(0)+i+d_tags[t].offset, - d_tags[t].key, d_tags[t].value); + d_tags[t].key, d_tags[t].value, d_tags[t].srcid); } } } |