Skip to content

Commit

Permalink
qtgui: fixes issue with 1-off because of added history of 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
trondeau committed Oct 21, 2014
1 parent 79a4fd6 commit d268898
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gr-qtgui/lib/time_sink_c_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down
4 changes: 2 additions & 2 deletions gr-qtgui/lib/time_sink_f_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit d268898

Please sign in to comment.