summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blossom <eb@comsec.com>2010-05-19 20:11:35 -0700
committerEric Blossom <eb@comsec.com>2010-05-19 20:11:35 -0700
commit1e963cd9b6e2a1687bbff86df66c5efbcb2be363 (patch)
tree10e34195727f988654b9cc2f7590f2620a4075ae
parent99a39a4351ca250dcbeeface0ab7b9de6e301d49 (diff)
Correct update of d_temp_offset (parallel construction)
-rwxr-xr-xgnuradio-core/src/lib/io/gr_udp_source.cc3
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