libs/gst/base/gstcollectpads.c: Don't loop infinitely if there are no buffers to present. Partially fixes #327197, bu...

Original commit message from CVS:
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_is_collected):
Don't loop infinitely if there are no buffers to present. Partially
fixes #327197, but collectpads is just broken for reusing elements
to do multiple encodes atm.
This commit is contained in:
Jan Schmidt 2006-01-20 09:26:00 +00:00
parent 134605648c
commit 1dad4aea3a
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-01-20 Jan Schmidt <thaytan@mad.scientist.com>
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_is_collected):
Don't loop infinitely if there are no buffers to present. Partially
fixes #327197, but collectpads is just broken for reusing elements
to do multiple encodes atm.
2006-01-20 Jan Schmidt <thaytan@mad.scientist.com>
* tools/gst-inspect.c: (print_element_features):

View file

@ -589,6 +589,10 @@ gst_collect_pads_is_collected (GstCollectPads * pads, GstFlowReturn * ret)
GST_DEBUG_FUNCPTR_NAME (pads->func));
flow_ret = pads->func (pads, pads->user_data);
res = TRUE;
/* Don't keep looping after telling the element EOS or flushing */
if (pads->queuedpads == 0)
break;
}
beach: