diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-13 16:12:38 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-14 17:27:47 -0700 |
commit | e59b6652d77b5326b5eb813a34bcf3ad51b44750 (patch) | |
tree | 2045335976ce06882d4f9ae0c290c00225edb517 /host | |
parent | d04fe45f552daa98be18995674ee34fa24f9652f (diff) | |
download | uhd-e59b6652d77b5326b5eb813a34bcf3ad51b44750.tar.gz uhd-e59b6652d77b5326b5eb813a34bcf3ad51b44750.tar.bz2 uhd-e59b6652d77b5326b5eb813a34bcf3ad51b44750.zip |
uhd: fix for resize routine of super packet handler
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/transport/super_recv_packet_handler.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/transport/super_recv_packet_handler.hpp b/host/lib/transport/super_recv_packet_handler.hpp index 61b4379b6..80ad17b6c 100644 --- a/host/lib/transport/super_recv_packet_handler.hpp +++ b/host/lib/transport/super_recv_packet_handler.hpp @@ -135,7 +135,8 @@ public: void resize(const size_t size){ if (this->size() == size) return; _props.resize(size); - _buffers_infos.resize(4, buffers_info_type(size)); + //re-initialize all buffers infos by re-creating the vector + _buffers_infos = std::vector<buffers_info_type>(4, buffers_info_type(size)); } //! Get the channel width of this handler |