From 053d2f5cdbb4027d65aa7cb8af851a9edeac1d0a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 10 Sep 2012 16:12:43 -0700 Subject: remove output bytes offset, can use sbuffer's length --- lib/gras_impl/input_buffer_queues.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/gras_impl/input_buffer_queues.hpp') diff --git a/lib/gras_impl/input_buffer_queues.hpp b/lib/gras_impl/input_buffer_queues.hpp index 3cb5b78..acde25a 100644 --- a/lib/gras_impl/input_buffer_queues.hpp +++ b/lib/gras_impl/input_buffer_queues.hpp @@ -181,10 +181,11 @@ inline void InputBufferQueues::init( _aux_queues[i]->pop(); const size_t hist_bytes = _history_bytes[i]; - std::memset(buff.get(), 0, hist_bytes); + std::memset(buff.get_actual_memory(), 0, hist_bytes); + buff.offset = hist_bytes; + buff.length = 0; + _queues[i].push_front(buff); - _queues[i].front().offset = hist_bytes; - _queues[i].front().length = 0; } } } -- cgit