commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/12: digital: propagate tags to packet_he


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/12: digital: propagate tags to packet_header
Date: Thu, 16 Jan 2014 20:33:24 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 0e8864ae8c4906a0cd545799b9f423d6e5edd872
Author: Bastian Bloessl <address@hidden>
Date:   Mon Dec 30 11:23:16 2013 +0100

    digital: propagate tags to packet_header
---
 gr-digital/lib/packet_headergenerator_bb_impl.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gr-digital/lib/packet_headergenerator_bb_impl.cc 
b/gr-digital/lib/packet_headergenerator_bb_impl.cc
index a0191fe..def050d 100644
--- a/gr-digital/lib/packet_headergenerator_bb_impl.cc
+++ b/gr-digital/lib/packet_headergenerator_bb_impl.cc
@@ -80,7 +80,10 @@ namespace gr {
                        gr_vector_void_star &output_items)
     {
       unsigned char *out = (unsigned char *) output_items[0];
-      if (!d_formatter->header_formatter(ninput_items[0], out)) {
+
+      std::vector<tag_t> tags;
+      get_tags_in_range(tags, 0, nitems_read(0), nitems_read(0) + 
ninput_items[0]);
+      if (!d_formatter->header_formatter(ninput_items[0], out, tags)) {
        GR_LOG_FATAL(d_logger, boost::format("header_formatter() returned false 
(this shouldn't happen). Offending header started at %1%") % nitems_read(0));
        throw std::runtime_error("header formatter returned false.");
       }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]