summaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-12 20:39:21 -0700
committerJosh Blum <josh@joshknows.com>2010-07-12 20:39:21 -0700
commit508af598a1b32345a53522b4d6d71e021f448347 (patch)
tree8399f1b3ba955b5dc2228fc818d131ce11a78c56 /host/lib/transport
parent4594aef53f75be451b9b64ad0ebdfdc742df251c (diff)
downloaduhd-508af598a1b32345a53522b4d6d71e021f448347.tar.gz
uhd-508af598a1b32345a53522b4d6d71e021f448347.tar.bz2
uhd-508af598a1b32345a53522b4d6d71e021f448347.zip
uhd: switch statements to handle error code, default md to error code none
Diffstat (limited to 'host/lib/transport')
-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