From a4a1de05f113052980b9215d2ab3c1b881fbefda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 17 Feb 2025 19:16:32 +0200 Subject: [PATCH] gstreamer: Fix various gobject-introspection warnings Part-of: --- girs/Gst-1.0.gir | 31 +++++++++++++++++++++---- subprojects/gstreamer/gst/gstiterator.c | 2 +- subprojects/gstreamer/gst/gstmeta.c | 2 +- subprojects/gstreamer/gst/gsttracer.c | 16 ++++++------- subprojects/gstreamer/gst/gstutils.h | 2 +- 5 files changed, 37 insertions(+), 16 deletions(-) diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir index 8fbfcccd4e..ebae30e97e 100644 --- a/girs/Gst-1.0.gir +++ b/girs/Gst-1.0.gir @@ -22555,11 +22555,11 @@ MT safe. The #GstIterator to filter - + the compare function to select elements - + user data passed to the compare function @@ -27308,7 +27308,7 @@ write the result back into @aggregated_params. - + This function sets the aggregator function for a specific API type. @@ -27319,7 +27319,7 @@ write the result back into @aggregated_params. the #GType of the API for which the aggregator function is being set. - + the aggregator function to be associated with the given API type. @@ -49611,6 +49611,7 @@ indicate its parameter handling preference. + the #GstTracerFactoryClass to mark as using structure parameters @@ -49630,6 +49631,7 @@ fields as properties to instanciate the tracer. + the #GstTracerClass to to check @@ -55338,6 +55340,24 @@ write the result back into @aggregated_params. + + This function sets the aggregator function for a specific API type. + + + + + + + the #GType of the API for which the aggregator function is being set. + + + + the aggregator function to be associated with the given API + type. + + + + Recreate a #GstMeta from serialized data returned by gst_meta_serialize() and add it to @buffer. @@ -57499,7 +57519,8 @@ the result. - + + a #guint32 value. diff --git a/subprojects/gstreamer/gst/gstiterator.c b/subprojects/gstreamer/gst/gstiterator.c index db0f597fd5..b5fbb904ad 100644 --- a/subprojects/gstreamer/gst/gstiterator.c +++ b/subprojects/gstreamer/gst/gstiterator.c @@ -529,7 +529,7 @@ filter_free (GstIteratorFilter * it) /** * gst_iterator_filter: * @it: The #GstIterator to filter - * @func: (scope call) (closure user_data): the compare function to select elements + * @func: (scope call): the compare function to select elements * @user_data: user data passed to the compare function * * Create a new iterator from an existing iterator. The new iterator diff --git a/subprojects/gstreamer/gst/gstmeta.c b/subprojects/gstreamer/gst/gstmeta.c index 1e961e6410..cbf59aaa28 100644 --- a/subprojects/gstreamer/gst/gstmeta.c +++ b/subprojects/gstreamer/gst/gstmeta.c @@ -450,7 +450,7 @@ gst_meta_api_type_aggregate_params (GType api, /** * gst_meta_api_type_set_params_aggregator: * @api: the #GType of the API for which the aggregator function is being set. - * @aggregator: the aggregator function to be associated with the given API + * @aggregator: (scope forever): the aggregator function to be associated with the given API * type. * * This function sets the aggregator function for a specific API type. diff --git a/subprojects/gstreamer/gst/gsttracer.c b/subprojects/gstreamer/gst/gsttracer.c index 0cf44e67fc..98c5f8aaa2 100644 --- a/subprojects/gstreamer/gst/gsttracer.c +++ b/subprojects/gstreamer/gst/gsttracer.c @@ -207,7 +207,7 @@ gst_tracer_register (GstPlugin * plugin, const gchar * name, GType type) /** * gst_tracer_class_uses_structure_params: - * @klass: the #GstTracerClass to to check + * @tracer_class: the #GstTracerClass to to check * * If set, the tracer subsystem will consider parameters passed to the * `GST_TRACERS` environment variable as a #GstStructure and use its @@ -218,17 +218,17 @@ gst_tracer_register (GstPlugin * plugin, const gchar * name, GType type) * Since: 1.26 */ gboolean -gst_tracer_class_uses_structure_params (GstTracerClass * klass) +gst_tracer_class_uses_structure_params (GstTracerClass * tracer_class) { - g_return_val_if_fail (GST_IS_TRACER_CLASS (klass), FALSE); + g_return_val_if_fail (GST_IS_TRACER_CLASS (tracer_class), FALSE); - return G_TYPE_CLASS_GET_PRIVATE (klass, GST_TYPE_TRACER, + return G_TYPE_CLASS_GET_PRIVATE (tracer_class, GST_TYPE_TRACER, GstTracerClassPrivate)->use_structure_params; } /** * gst_tracer_class_set_use_structure_params: - * @klass: the #GstTracerFactoryClass to mark as using structure parameters + * @tracer_class: the #GstTracerFactoryClass to mark as using structure parameters * @use_structure_params: %TRUE to use structure parameters, %FALSE otherwise * * Sets whether the tracer should use structure parameters for configuration. @@ -241,11 +241,11 @@ gst_tracer_class_uses_structure_params (GstTracerClass * klass) * Since: 1.26 */ void -gst_tracer_class_set_use_structure_params (GstTracerClass * klass, +gst_tracer_class_set_use_structure_params (GstTracerClass * tracer_class, gboolean use_structure_params) { - g_return_if_fail (GST_IS_TRACER_CLASS (klass)); + g_return_if_fail (GST_IS_TRACER_CLASS (tracer_class)); - G_TYPE_CLASS_GET_PRIVATE (klass, GST_TYPE_TRACER, + G_TYPE_CLASS_GET_PRIVATE (tracer_class, GST_TYPE_TRACER, GstTracerClassPrivate)->use_structure_params = use_structure_params; } diff --git a/subprojects/gstreamer/gst/gstutils.h b/subprojects/gstreamer/gst/gstutils.h index 05eedb8db7..e6e544939c 100644 --- a/subprojects/gstreamer/gst/gstutils.h +++ b/subprojects/gstreamer/gst/gstutils.h @@ -1247,7 +1247,7 @@ GST_API guint gst_util_ceil_log2 (guint32 v); GST_API -guint gst_util_floor_log2 (guint32 x); +guint gst_util_floor_log2 (guint32 v); GST_API gint gst_util_filename_compare (const gchar *a, const gchar *b);