aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2018-11-02 11:26:13 +0100
committerPiotr Krysik <ptrkrysik@gmail.com>2018-11-02 11:26:13 +0100
commit6a0fb1a415b81aea63a6ac39a977c454cd7ff555 (patch)
tree07b34124dd4e008c7db08ebc6367389cb8a51dec
parent00a9c400a87389a3b3f0a830eb64e909bdfc0209 (diff)
misc_utils/resampler: Fix repetition of tags at the output
When tag appears at the last sample of the ouput buffer it will be added again in the next run of the work function. Here this issue was solved by changing the codition so the tag appearing at the end of the output buffer is not added. Change-Id: Ia4f0923e2071184879a023d0fe01026d8e9ccbda
-rw-r--r--lib/misc_utils/controlled_fractional_resampler_cc_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/misc_utils/controlled_fractional_resampler_cc_impl.cc b/lib/misc_utils/controlled_fractional_resampler_cc_impl.cc
index 36cf170..300b4a9 100644
--- a/lib/misc_utils/controlled_fractional_resampler_cc_impl.cc
+++ b/lib/misc_utils/controlled_fractional_resampler_cc_impl.cc
@@ -117,7 +117,7 @@ namespace gr {
}
} else {
uint64_t out_samples_to_tag = round(static_cast<double>(tag_offset_rel-processed_in_sum)/d_mu_inc);
- if( (out_samples_to_tag + produced_out_sum) <= noutput_items)
+ if( (out_samples_to_tag + produced_out_sum) < noutput_items)
{
add_item_tag(0, produced_out_sum + out_samples_to_tag + nitems_written(0), i_tag->key, i_tag->value);
}