diff options
author | Eric Blossom <eb@comsec.com> | 2010-05-19 20:11:35 -0700 |
---|---|---|
committer | Eric Blossom <eb@comsec.com> | 2010-05-19 20:11:35 -0700 |
commit | 1e963cd9b6e2a1687bbff86df66c5efbcb2be363 (patch) | |
tree | 10e34195727f988654b9cc2f7590f2620a4075ae | |
parent | 99a39a4351ca250dcbeeface0ab7b9de6e301d49 (diff) |
Correct update of d_temp_offset (parallel construction)
-rwxr-xr-x | gnuradio-core/src/lib/io/gr_udp_source.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/io/gr_udp_source.cc b/gnuradio-core/src/lib/io/gr_udp_source.cc index 063cd7b507..cc98492805 100755 --- a/gnuradio-core/src/lib/io/gr_udp_source.cc +++ b/gnuradio-core/src/lib/io/gr_udp_source.cc @@ -242,7 +242,8 @@ gr_udp_source::work (int noutput_items, // Update indexing of amount of bytes left in the buffer d_residual -= nbytes; - d_temp_offset = d_temp_offset+d_residual; + d_temp_offset += nbytes; + // FIXME? Returning here could simplify life... } #if USE_SELECT |