summaryrefslogtreecommitdiff
path: root/lib/gras_impl/input_buffer_queues.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gras_impl/input_buffer_queues.hpp')
-rw-r--r--lib/gras_impl/input_buffer_queues.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gras_impl/input_buffer_queues.hpp b/lib/gras_impl/input_buffer_queues.hpp
index d192a2e..0db5cb4 100644
--- a/lib/gras_impl/input_buffer_queues.hpp
+++ b/lib/gras_impl/input_buffer_queues.hpp
@@ -273,7 +273,9 @@ GRAS_FORCE_INLINE void InputBufferQueues::push(const size_t i, const SBuffer &bu
{
SBuffer &b1 = _queues[i][j];
SBuffer &b0 = _queues[i][j-1];
- if (b1.last == b0.get(b0.length))
+ //can stitch when last is the end of the front pointer
+ //and the front also has a last (not accum buffer)
+ if (b1.last == b0.get(b0.length) and b0.last != 0)
{
const size_t bytes = b1.length;
b0.length += bytes;