diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index 524c6ed1fe..8c262249b4 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -1288,12 +1288,14 @@ gst_queue2_create_read (GstQueue2 * queue, guint64 offset, guint length, hit_eos: { GST_DEBUG_OBJECT (queue, "EOS hit and we don't have any requested data"); + gst_buffer_unmap (buf, &info); gst_buffer_unref (buf); return GST_FLOW_EOS; } out_flushing: { GST_DEBUG_OBJECT (queue, "we are flushing"); + gst_buffer_unmap (buf, &info); gst_buffer_unref (buf); return GST_FLOW_WRONG_STATE; }