mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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:
parent
293ad62035
commit
4d240c27b7
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue