From 1e963cd9b6e2a1687bbff86df66c5efbcb2be363 Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Wed, 19 May 2010 20:11:35 -0700 Subject: [PATCH] Correct update of d_temp_offset (parallel construction) --- gnuradio-core/src/lib/io/gr_udp_source.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnuradio-core/src/lib/io/gr_udp_source.cc b/gnuradio-core/src/lib/io/gr_udp_source.cc index 063cd7b5..cc984928 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 -- 2.30.2