aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorPaul David <paul.david@ettus.com>2016-08-01 11:26:51 -0700
committerMartin Braun <martin.braun@ettus.com>2016-08-01 18:38:58 -0700
commitdbbda210c2f9a0e28850b5983e40e3c1e19d2b22 (patch)
treeac12c7d7addbb2f6ea0680ff94d78dd84330172c /host/lib
parent19fe9ddc4881d0d1f07be9f2d6b5b39dc834bdfc (diff)
downloaduhd-dbbda210c2f9a0e28850b5983e40e3c1e19d2b22.tar.gz
uhd-dbbda210c2f9a0e28850b5983e40e3c1e19d2b22.tar.bz2
uhd-dbbda210c2f9a0e28850b5983e40e3c1e19d2b22.zip
transport: fixed an issue where the number of conversions were incorrectly based on the number of buffers
- The number of conversions should be based on the number of channels available - This fix corrects a segmentation fault in rx_multi_samples
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/transport/super_recv_packet_handler.hpp2
-rw-r--r--host/lib/transport/super_send_packet_handler.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/super_recv_packet_handler.hpp b/host/lib/transport/super_recv_packet_handler.hpp
index b65d7c7aa..541d9f3bc 100644
--- a/host/lib/transport/super_recv_packet_handler.hpp
+++ b/host/lib/transport/super_recv_packet_handler.hpp
@@ -665,7 +665,7 @@ private:
_convert_bytes_to_copy = bytes_to_copy;
//perform N channels of conversion
- for (size_t i = 0; i < buffs.size(); i++) {
+ for (size_t i = 0; i < this->size(); i++) {
convert_to_out_buff(i);
}
diff --git a/host/lib/transport/super_send_packet_handler.hpp b/host/lib/transport/super_send_packet_handler.hpp
index a6b9b12d0..7f43168a0 100644
--- a/host/lib/transport/super_send_packet_handler.hpp
+++ b/host/lib/transport/super_send_packet_handler.hpp
@@ -370,7 +370,7 @@ private:
_convert_if_packet_info = &if_packet_info;
//perform N channels of conversion
- for (size_t i = 0; i < buffs.size(); i++) {
+ for (size_t i = 0; i < this->size(); i++) {
convert_to_in_buff(i);
}