From eebff7b0487bffbac775208ef25a66b19a35d4ab Mon Sep 17 00:00:00 2001 From: Evan Nemerson Date: Wed, 11 Jun 2014 17:15:39 -0700 Subject: [PATCH] base: assorted introspection fixes and additions https://bugzilla.gnome.org/show_bug.cgi?id=731542 --- libs/gst/base/gstadapter.c | 2 +- libs/gst/base/gstcollectpads.c | 8 ++++---- libs/gst/base/gstcollectpads.h | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/libs/gst/base/gstadapter.c b/libs/gst/base/gstadapter.c index 18fa77e..fc1582b 100644 --- a/libs/gst/base/gstadapter.c +++ b/libs/gst/base/gstadapter.c @@ -1165,7 +1165,7 @@ gst_adapter_prev_dts_at_offset (GstAdapter * adapter, gsize offset, * @offset: offset into the adapter data from which to start scanning, returns * the last scanned position. * @size: number of bytes to scan from offset - * @value: pointer to uint32 to return matching data + * @value: (out) (allow-none): pointer to uint32 to return matching data * * Scan for pattern @pattern with applied mask @mask in the adapter data, * starting from offset @offset. If a match is found, the value that matched diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c index 41e4722..bebaf12 100644 --- a/libs/gst/base/gstcollectpads.c +++ b/libs/gst/base/gstcollectpads.c @@ -576,8 +576,8 @@ gst_collect_pads_set_flush_function (GstCollectPads * pads, * @pads: the collectpads to use * @pad: (transfer none): the pad to add * @size: the size of the returned #GstCollectData structure - * @destroy_notify: function to be called before the returned #GstCollectData - * structure is freed + * @destroy_notify: (scope async): function to be called before the returned + * #GstCollectData structure is freed * @lock: whether to lock this pad in usual waiting state * * Add a pad to the collection of collect pads. The pad has to be @@ -606,8 +606,8 @@ gst_collect_pads_set_flush_function (GstCollectPads * pads, * * MT safe. * - * Returns: (nullable): a new #GstCollectData to identify the new pad. Or %NULL - * if wrong parameters are supplied. + * Returns: (nullable) (transfer none): a new #GstCollectData to identify the + * new pad. Or %NULL if wrong parameters are supplied. */ GstCollectData * gst_collect_pads_add_pad (GstCollectPads * pads, GstPad * pad, guint size, diff --git a/libs/gst/base/gstcollectpads.h b/libs/gst/base/gstcollectpads.h index 0ba2dee..9d56614 100644 --- a/libs/gst/base/gstcollectpads.h +++ b/libs/gst/base/gstcollectpads.h @@ -279,7 +279,8 @@ typedef void (*GstCollectPadsFlushFunction) (GstCollectPads *pads, gpointer user /** * GstCollectPads: - * @data: #GList of #GstCollectData managed by this #GstCollectPads. + * @data: (element-type GstBase.CollectData): #GList of #GstCollectData managed + * by this #GstCollectPads. * * Collectpads object. */ -- 2.7.4