aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-12 16:11:37 -0800
committerJosh Blum <josh@joshknows.com>2011-01-12 16:11:37 -0800
commit2086f73d278d7632e3d4181b2442c9eb30d71785 (patch)
treee568e58ca197bdac78ea722fbb0a44d8d9eda751 /host/lib/transport
parent6f814f04c4af020a627f6772f7f9b14083d312f4 (diff)
downloaduhd-2086f73d278d7632e3d4181b2442c9eb30d71785.tar.gz
uhd-2086f73d278d7632e3d4181b2442c9eb30d71785.tar.bz2
uhd-2086f73d278d7632e3d4181b2442c9eb30d71785.zip
uhd: fix size param error when getting a convert routine in pkt handler
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/vrt_packet_handler.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/vrt_packet_handler.hpp b/host/lib/transport/vrt_packet_handler.hpp
index 0507ae328..c535edd04 100644
--- a/host/lib/transport/vrt_packet_handler.hpp
+++ b/host/lib/transport/vrt_packet_handler.hpp
@@ -238,7 +238,7 @@ template <typename T> UHD_INLINE T get_context_code(
){
uhd::convert::function_type converter(
uhd::convert::get_converter_otw_to_cpu(
- io_type, otw_type, 1, buffs.size()
+ io_type, otw_type, 1, chans_per_otw_buff
));
switch(recv_mode){
@@ -374,7 +374,7 @@ template <typename T> UHD_INLINE T get_context_code(
){
uhd::convert::function_type converter(
uhd::convert::get_converter_cpu_to_otw(
- io_type, otw_type, buffs.size(), 1
+ io_type, otw_type, chans_per_otw_buff, 1
));
//translate the metadata to vrt if packet info