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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3830>
This commit is contained in:
Mathieu Duponchelle 2023-01-27 19:29:24 +01:00 committed by GStreamer Marge Bot
parent 293ad62035
commit 4d240c27b7

View file

@ -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);