summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authorEric Blossom2010-05-19 20:11:35 -0700
committerEric Blossom2010-05-19 20:11:35 -0700
commit1e963cd9b6e2a1687bbff86df66c5efbcb2be363 (patch)
tree10e34195727f988654b9cc2f7590f2620a4075ae /gnuradio-core/src
parent99a39a4351ca250dcbeeface0ab7b9de6e301d49 (diff)
downloadgnuradio-1e963cd9b6e2a1687bbff86df66c5efbcb2be363.tar.gz
gnuradio-1e963cd9b6e2a1687bbff86df66c5efbcb2be363.tar.bz2
gnuradio-1e963cd9b6e2a1687bbff86df66c5efbcb2be363.zip
Correct update of d_temp_offset (parallel construction)
Diffstat (limited to 'gnuradio-core/src')
-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 063cd7b50..cc9849280 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