collectpads: Update documentation for flushing seek handling
authorSebastian Dröge <sebastian@centricular.com>
Wed, 6 Nov 2013 17:41:10 +0000 (18:41 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 11 Nov 2013 15:50:42 +0000 (16:50 +0100)
libs/gst/base/gstcollectpads.c
libs/gst/base/gstcollectpads.h

index 431de7d..40ebf90 100644 (file)
@@ -531,7 +531,7 @@ gst_collect_pads_clip_running_time (GstCollectPads * pads,
   return GST_FLOW_OK;
 }
 
- /**
+/**
  * gst_collect_pads_set_clip_function:
  * @pads: the collectpads to use
  * @clipfunc: clip function to install
@@ -551,6 +551,18 @@ gst_collect_pads_set_clip_function (GstCollectPads * pads,
   pads->priv->clip_user_data = user_data;
 }
 
+/**
+ * gst_collect_pads_set_flush_function:
+ * @pads: the collectpads to use
+ * @func: flush function to install
+ * @user_data: user data to pass to @func
+ *
+ * Install a flush function that is called when the internal
+ * state of all pads should be flushed as part of flushing seek
+ * handling. See #GstCollectPadsFlushFunction for more info.
+ *
+ * Since: 1.4
+ */
 void
 gst_collect_pads_set_flush_function (GstCollectPads * pads,
     GstCollectPadsFlushFunction func, gpointer user_data)
@@ -1865,6 +1877,18 @@ forward_event_to_all_sinkpads (GstPad * srcpad, GstEvent * event)
   return data.result;
 }
 
+/**
+ * gst_collect_pads_src_event_default:
+ * @pads: the collectpads to use
+ * @pad: src #GstPad that received the event
+ * @event: event being processed
+ *
+ * Default GstCollectPads event handling for the src pad of elements.
+ * Elements can chain up to this to let flushing seek event handling
+ * be done by GstCollectPads.
+ *
+ * Since: 1.4
+ */
 gboolean
 gst_collect_pads_src_event_default (GstCollectPads * pads, GstPad * pad,
     GstEvent * event)
index 8d8128c..87cbb61 100644 (file)
@@ -249,7 +249,7 @@ typedef GstFlowReturn (*GstCollectPadsClipFunction) (GstCollectPads *pads, GstCo
  * @pads object. It is therefore not necessary to call
  * gst_collect_pads_set_flushing nor gst_collect_pads_clear from this function.
  *
- * Since: FIXME
+ * Since: 1.4
  */
 typedef void (*GstCollectPadsFlushFunction) (GstCollectPads *pads, gpointer user_data);