diff options
| author | Josh Blum <josh@joshknows.com> | 2010-07-10 03:09:59 +0000 |
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2010-07-10 03:09:59 +0000 |
| commit | 55338617fea9fe79ff62e76e674b6c08580ac562 (patch) | |
| tree | 1686c74d9abb86a450b9bc1fe25ddb0251b997ab /host/lib/transport/vrt_packet_handler.hpp | |
| parent | e5a05a4476a6b30b2c36bef71a9a67611fae7cc4 (diff) | |
| parent | c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c (diff) | |
| download | uhd-55338617fea9fe79ff62e76e674b6c08580ac562.tar.gz uhd-55338617fea9fe79ff62e76e674b6c08580ac562.tar.bz2 uhd-55338617fea9fe79ff62e76e674b6c08580ac562.zip | |
Merge branch 'error_handling' 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.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/transport/vrt_packet_handler.hpp b/host/lib/transport/vrt_packet_handler.hpp index c0d6bbe12..221e2bfa6 100644 --- a/host/lib/transport/vrt_packet_handler.hpp +++ b/host/lib/transport/vrt_packet_handler.hpp @@ -329,7 +329,9 @@ namespace vrt_packet_handler{ ); //commit the samples to the zero-copy interface - send_buffs[i]->commit(if_packet_info.num_packet_words32*sizeof(boost::uint32_t)); + if (send_buffs[i]->commit(if_packet_info.num_packet_words32*sizeof(boost::uint32_t)) < num_samps){ + std::cerr << "commit to send buffer returned less than commit size" << std::endl; + } } } |
