collectpads: do not unref flush_start twice

Based on patch by Matej Knopp <matej.knopp@gmail.com>
This commit is contained in:
Mark Nauwelaerts 2012-04-23 17:04:57 +02:00
parent 6a48006c21
commit 6802189d68

View file

@ -1722,6 +1722,7 @@ gst_collect_pads_event_default (GstCollectPads * pads, GstCollectData * data,
/* forward event to unblock check_collected */
GST_DEBUG_OBJECT (pad, "forwarding flush start");
res = gst_pad_event_default (pad, parent, event);
event = NULL;
/* now unblock the chain function.
* no cond per pad, so they all unblock,
@ -1846,7 +1847,8 @@ gst_collect_pads_event_default (GstCollectPads * pads, GstCollectData * data,
}
eat:
gst_event_unref (event);
if (event)
gst_event_unref (event);
return res;
forward: