queue2: fix buffer leak on eos when using the ring buffer

This commit is contained in:
Tim-Philipp Müller 2011-04-07 20:45:22 +01:00
parent 46a786cee6
commit 12249e99c2

View file

@ -1212,6 +1212,7 @@ gst_queue2_create_read (GstQueue2 * queue, guint64 offset, guint length,
} else {
GST_DEBUG_OBJECT (queue,
"EOS hit and we don't have any requested data");
gst_buffer_unref (buf);
return GST_FLOW_UNEXPECTED;
}
}