BaseSrc, PushSrc: add nullable annotations to virtual methods

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3833>
This commit is contained in:
Mathieu Duponchelle 2023-01-26 15:42:18 +01:00 committed by Tim-Philipp Müller
parent 26ee3d83fb
commit e0659683e3
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.
*/