BaseSrc, PushSrc: add nullable annotations to virtual methods

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3806>
This commit is contained in:
Mathieu Duponchelle 2023-01-26 15:42:18 +01:00 committed by GStreamer Marge Bot
parent 5e9a32ed8c
commit c8298a2787
2 changed files with 4 additions and 4 deletions

View file

@ -241,7 +241,7 @@ struct _GstBaseSrcClass {
/**
* GstBaseSrcClass::create:
* @buf: (inout):
* @buf: (inout) (nullable):
*
* Ask the subclass to create a buffer with @offset and @size, the default
* implementation will call alloc if no allocated @buf is provided and then call fill.
@ -250,7 +250,7 @@ struct _GstBaseSrcClass {
GstBuffer **buf);
/**
* GstBaseSrcClass::alloc:
* @buf: (out):
* @buf: (out) (nullable):
*
* Ask the subclass to allocate an output buffer with @offset and @size, the default
* implementation will use the negotiated allocator.

View file

@ -72,7 +72,7 @@ struct _GstPushSrcClass {
/**
* GstPushSrcClass::create:
* @buf: (inout):
* @buf: (inout) (nullable):
*
* Ask the subclass to create a buffer, the default implementation will call alloc if
* no allocated @buf is provided and then call fill.
@ -80,7 +80,7 @@ struct _GstPushSrcClass {
GstFlowReturn (*create) (GstPushSrc *src, GstBuffer **buf);
/**
* GstPushSrcClass::alloc:
* @buf: (out):
* @buf: (out) (nullable):
*
* Allocate memory for a buffer.
*/