collectpads: fix buffer leak in clip_time

This commit is contained in:
Tim-Philipp Müller 2012-10-15 19:55:42 +01:00
parent 81aef52ac4
commit bb2fda64f7

View file

@ -1571,6 +1571,7 @@ gst_collect_pads_clip_time (GstCollectPads * pads, GstCollectData * data,
pads->priv->clip_func (pads, data, in, &out, pads->priv->clip_user_data);
if (out) {
otime = GST_BUFFER_TIMESTAMP (out);
gst_buffer_unref (out);
} else {
/* FIXME should distinguish between ahead or after segment,
* let's assume after segment and use some large time ... */