Created
September 23, 2015 18:25
-
-
Save trondeau/325cb856802ebf22dc46 to your computer and use it in GitHub Desktop.
tagged_stream_block patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gnuradio-runtime/lib/tagged_stream_block.cc b/gnuradio-runtime/lib/tagged_stream_block.cc | |
index 252a235..6d743e1 100644 | |
--- a/gnuradio-runtime/lib/tagged_stream_block.cc | |
+++ b/gnuradio-runtime/lib/tagged_stream_block.cc | |
@@ -141,14 +141,16 @@ namespace gr { | |
if(n_produced == WORK_DONE) { | |
return n_produced; | |
} | |
- for(int i = 0; i < (int) d_n_input_items_reqd.size(); i++) { | |
- consume(i, d_n_input_items_reqd[i]); | |
- } | |
+ | |
if (n_produced > 0) { | |
+ for(int i = 0; i < (int) d_n_input_items_reqd.size(); i++) { | |
+ consume(i, d_n_input_items_reqd[i]); | |
+ } | |
update_length_tags(n_produced, output_items.size()); | |
+ | |
+ d_n_input_items_reqd.assign(input_items.size(), 0); | |
} | |
- d_n_input_items_reqd.assign(input_items.size(), 0); | |
return n_produced; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment