aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/vrt_packet_handler.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-14 22:13:54 +0000
committerJosh Blum <josh@joshknows.com>2010-07-14 22:13:54 +0000
commitf34c3ce69ca6ecac9dedf7c13804064b860d8463 (patch)
treefbd2855b45ff24bead6342375f87fe00abb20a05 /host/lib/transport/vrt_packet_handler.hpp
parent9ee1b33bbc170b2e76fbb5b9a075d6b6c7315a7e (diff)
parent959669e383c75fdcbd11091466516bd5af66cfb5 (diff)
downloaduhd-f34c3ce69ca6ecac9dedf7c13804064b860d8463.tar.gz
uhd-f34c3ce69ca6ecac9dedf7c13804064b860d8463.tar.bz2
uhd-f34c3ce69ca6ecac9dedf7c13804064b860d8463.zip
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/lib/transport/vrt_packet_handler.hpp')
-rw-r--r--host/lib/transport/vrt_packet_handler.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/transport/vrt_packet_handler.hpp b/host/lib/transport/vrt_packet_handler.hpp
index 6623957ac..fdcff24b8 100644
--- a/host/lib/transport/vrt_packet_handler.hpp
+++ b/host/lib/transport/vrt_packet_handler.hpp
@@ -146,6 +146,8 @@ namespace vrt_packet_handler{
const handle_overrun_t &handle_overrun,
size_t vrt_header_offset_words32
){
+ metadata.error_code = uhd::rx_metadata_t::ERROR_CODE_NONE;
+
//perform a receive if no rx data is waiting to be copied
if (state.size_of_copy_buffs == 0){
state.fragment_offset_in_samps = 0;
@@ -171,7 +173,6 @@ namespace vrt_packet_handler{
metadata.has_time_spec = false;
metadata.start_of_burst = false;
metadata.end_of_burst = false;
- metadata.error_code = uhd::rx_metadata_t::ERROR_CODE_NONE;
}
//extract the number of samples available to copy