From ef012f8e58d44de3a13371958fba7f099e5dc840 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 28 Sep 2012 10:41:54 +0200 Subject: [PATCH] pad: fix activate docs --- gst/gstpad.c | 9 ++++----- gst/gstpad.h | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index 803d1c1..5dcc1ce 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -909,9 +909,8 @@ post_activate (GstPad * pad, GstPadMode new_mode) * push or pull mode, just return. Otherwise dispatches to the pad's activate * function to perform the actual activation. * - * If not @active, checks the pad's current mode and calls - * gst_pad_activate_push() or gst_pad_activate_pull(), as appropriate, with a - * FALSE argument. + * If not @active, calls gst_pad_activate_mode() with the pad's current mode + * and a FALSE argument. * * Returns: #TRUE if the operation was successful. * @@ -1449,8 +1448,8 @@ gst_pad_mark_reconfigure (GstPad * pad) * @notify: notify called when @activate will not be used anymore. * * Sets the given activate function for @pad. The activate function will - * dispatch to gst_pad_activate_push() or gst_pad_activate_pull() to perform - * the actual activation. Only makes sense to set on sink pads. + * dispatch to gst_pad_activate_mode() to perform the actual activation. + * Only makes sense to set on sink pads. * * Call this function if your sink pad can start a pull-based task. */ diff --git a/gst/gstpad.h b/gst/gstpad.h index 9fd605c..676cd69 100644 --- a/gst/gstpad.h +++ b/gst/gstpad.h @@ -309,7 +309,8 @@ typedef GstFlowReturn (*GstPadChainListFunction) (GstPad *pad, GstObject *paren * * This function is installed on a source pad with * gst_pad_set_getrange_function() and can only be called on source pads after - * they are successfully activated with gst_pad_activate_pull(). + * they are successfully activated with gst_pad_activate_mode() with the + * #GST_PAD_MODE_PULL. * * @offset and @length are always given in byte units. @offset must normally be a value * between 0 and the length in bytes of the data available on @pad. The -- 2.7.4