mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
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:
parent
89ae3c2a82
commit
0564c1c2b8
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue