commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/01: qtgui: fixes issue with 1-off becaus


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/01: qtgui: fixes issue with 1-off because of added history of 2.
Date: Tue, 21 Oct 2014 21:04:38 +0000 (UTC)

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

trondeau pushed a commit to branch maint
in repository gnuradio.

commit d26889831042e9df71f83b2e976f69546f990515
Author: Tom Rondeau <address@hidden>
Date:   Tue Oct 21 16:46:07 2014 -0400

    qtgui: fixes issue with 1-off because of added history of 2.
---
 gr-qtgui/lib/time_sink_c_impl.cc | 4 ++--
 gr-qtgui/lib/time_sink_f_impl.cc | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc
index e7c580d..0e4eade 100644
--- a/gr-qtgui/lib/time_sink_c_impl.cc
+++ b/gr-qtgui/lib/time_sink_c_impl.cc
@@ -612,13 +612,13 @@ namespace gr {
         in = (const gr_complex*)input_items[idx];
         volk_32fc_deinterleave_64f_x2(&d_buffers[n][d_index],
                                       &d_buffers[n+1][d_index],
-                                      &in[0], nitems);
+                                      &in[1], nitems);
 
         uint64_t nr = nitems_read(idx);
         std::vector<gr::tag_t> tags;
         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);
+          tags[t].offset = tags[t].offset - nr + (d_index-d_start-1);
         }
         d_tags[idx].insert(d_tags[idx].end(), tags.begin(), tags.end());
         idx++;
diff --git a/gr-qtgui/lib/time_sink_f_impl.cc b/gr-qtgui/lib/time_sink_f_impl.cc
index 4328c2c..642ee16 100644
--- a/gr-qtgui/lib/time_sink_f_impl.cc
+++ b/gr-qtgui/lib/time_sink_f_impl.cc
@@ -607,13 +607,13 @@ namespace gr {
       for(n = 0; n < d_nconnections; n++) {
         in = (const float*)input_items[idx];
         volk_32f_convert_64f(&d_buffers[n][d_index],
-                             &in[0], nitems);
+                             &in[1], nitems);
 
         uint64_t nr = nitems_read(idx);
         std::vector<gr::tag_t> tags;
         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);
+          tags[t].offset = tags[t].offset - nr + (d_index-d_start-1);
         }
         d_tags[idx].insert(d_tags[idx].end(), tags.begin(), tags.end());
         idx++;



reply via email to

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