GNOME Bugzilla – Bug 320766
[API] collect pads API changes
Last modified: 2005-11-21 11:31:56 UTC
We might want to add a GstCollectFlags flags parameter to gst_collect_pads_add_pad() to make it more future proof. Cheers -Tim
Proposed changes to the collect pads API: * add a flags argument to gst_collect_pads_add_pad() * rename all gst_collectpads_foo() to gst_collect_pads_foo(), after all it's GstCollectPads and not GstCollectpads. Cheers -Tim
Also check these function, that currently do nothing at all: gboolean gst_collectpads_is_active (GstCollectPads * pads, GstPad * pad) { return FALSE; } GstFlowReturn gst_collectpads_collect (GstCollectPads * pads) { return GST_FLOW_ERROR; } GstFlowReturn gst_collectpads_collect_range (GstCollectPads * pads, guint64 offset, guint length) { return GST_FLOW_ERROR; }
Collect range is good to have in the api; i´d like to implement it at some point.
why flags?
ping? you want to go ahead and do this, tim?
I'll do the collectpads to collect_pads renaming on Monday if there's no objections and leave everything else as is. I don't have a specific reason for the flags, I just thought it might be useful in future. Will not add them for now.
API rename fixed in CVS. No flags added to _add_pad(). Documented unimplemented functions as unimplemented.