From 0564c1c2b8ad274692ba8358e27fcf00a3b10ce3 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 9 Oct 2013 15:36:48 -0300 Subject: [PATCH] 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 --- libs/gst/base/gstcollectpads.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c index 3d69abd..799835a 100644 --- a/libs/gst/base/gstcollectpads.c +++ b/libs/gst/base/gstcollectpads.c @@ -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; -- 2.7.4