collectpads: Call the collected function while it returns FLOW_OK

This allows us to make sure the elements is EOS and does not have
remaining buffers to be drained.

https://bugzilla.gnome.org/show_bug.cgi?id=709637
This commit is contained in:
Thibault Saunier 2013-10-09 15:36:48 -03:00
parent 89ae3c2a82
commit 0564c1c2b8

View file

@ -1284,7 +1284,9 @@ gst_collect_pads_check_collected (GstCollectPads * pads)
GST_DEBUG_OBJECT (pads, "All active pads (%d) are EOS, calling %s",
pads->priv->numpads, GST_DEBUG_FUNCPTR_NAME (func));
flow_ret = func (pads, user_data);
do {
flow_ret = func (pads, user_data);
} while (flow_ret == GST_FLOW_OK);
} else {
gboolean collected = FALSE;