From 4d240c27b74352bf5a58facfd8f89b81a60a94a1 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 27 Jan 2023 19:29:24 +0100 Subject: [PATCH] BaseSrc: fix transfer annotation for fixate virtual method The fixate virtual method has the same semantics as gst_caps_fixate(), so the caps parameter must be marked as (transfer full). Part-of: --- subprojects/gstreamer/libs/gst/base/gstbasesrc.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/subprojects/gstreamer/libs/gst/base/gstbasesrc.h b/subprojects/gstreamer/libs/gst/base/gstbasesrc.h index b1612dcafb..4207ffc3ff 100644 --- a/subprojects/gstreamer/libs/gst/base/gstbasesrc.h +++ b/subprojects/gstreamer/libs/gst/base/gstbasesrc.h @@ -184,6 +184,14 @@ struct _GstBaseSrcClass { /* decide on caps */ gboolean (*negotiate) (GstBaseSrc *src); /* called if, in negotiation, caps need fixating */ + /** + * GstBaseSrcClass::fixate: + * @caps: (transfer full): + * + * Called if, in negotiation, caps need fixating. + * + * Returns: (transfer full): the fixated caps + */ GstCaps * (*fixate) (GstBaseSrc *src, GstCaps *caps); /* notify the subclass of new caps */ gboolean (*set_caps) (GstBaseSrc *src, GstCaps *caps);