From dbbda210c2f9a0e28850b5983e40e3c1e19d2b22 Mon Sep 17 00:00:00 2001 From: Paul David Date: Mon, 1 Aug 2016 11:26:51 -0700 Subject: 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 --- host/lib/transport/super_recv_packet_handler.hpp | 2 +- host/lib/transport/super_send_packet_handler.hpp | 2 +- 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); } -- cgit v1.2.3