commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 03/09: qtgui: fixed a stray +1 that was dup


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/09: qtgui: fixed a stray +1 that was duplicating tags.
Date: Sun, 21 Feb 2016 15:39:13 +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 860b200ee26dde30cf2cd8ad455305754d663c52
Author: Tom Rondeau <address@hidden>
Date:   Wed Dec 30 16:26:07 2015 -0500

    qtgui: fixed a stray +1 that was duplicating tags.
    
    When this was looking at the very end of the buffer, the +1 was a
    look-ahead based on history; but this would then become the 0th
    element the next call to work and would double up on that tag.
---
 gr-qtgui/lib/time_sink_c_impl.cc | 2 +-
 gr-qtgui/lib/time_sink_f_impl.cc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc
index 9f1a04c..7e5aabf 100644
--- a/gr-qtgui/lib/time_sink_c_impl.cc
+++ b/gr-qtgui/lib/time_sink_c_impl.cc
@@ -652,7 +652,7 @@ namespace gr {
 
         uint64_t nr = nitems_read(n);
         std::vector<gr::tag_t> tags;
-        get_tags_in_range(tags, n, nr, nr + nitems + 1);
+        get_tags_in_range(tags, n, nr, nr + nitems);
         for(size_t t = 0; t < tags.size(); t++) {
           tags[t].offset = tags[t].offset - nr + (d_index-d_start-1);
         }
diff --git a/gr-qtgui/lib/time_sink_f_impl.cc b/gr-qtgui/lib/time_sink_f_impl.cc
index e81a9f4..579dfd9 100644
--- a/gr-qtgui/lib/time_sink_f_impl.cc
+++ b/gr-qtgui/lib/time_sink_f_impl.cc
@@ -643,7 +643,7 @@ namespace gr {
 
         uint64_t nr = nitems_read(idx);
         std::vector<gr::tag_t> tags;
-        get_tags_in_range(tags, idx, nr, nr + nitems + 1);
+        get_tags_in_range(tags, idx, nr, nr + nitems);
         for(size_t t = 0; t < tags.size(); t++) {
           tags[t].offset = tags[t].offset - nr + (d_index-d_start-1);
         }



reply via email to

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