mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
pushsrc: Add missing annotations
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1392>
This commit is contained in:
parent
4e2e8492c9
commit
7b1958c8de
1 changed files with 13 additions and 3 deletions
|
@ -70,10 +70,20 @@ struct _GstPushSrc {
|
||||||
struct _GstPushSrcClass {
|
struct _GstPushSrcClass {
|
||||||
GstBaseSrcClass parent_class;
|
GstBaseSrcClass parent_class;
|
||||||
|
|
||||||
/* ask the subclass to create a buffer, the default implementation
|
/**
|
||||||
* uses alloc and fill */
|
* GstPushSrcClass::create:
|
||||||
|
* @buf: (inout):
|
||||||
|
*
|
||||||
|
* Ask the subclass to create a buffer, the default implementation will call alloc if
|
||||||
|
* no allocated @buf is provided and then call fill.
|
||||||
|
*/
|
||||||
GstFlowReturn (*create) (GstPushSrc *src, GstBuffer **buf);
|
GstFlowReturn (*create) (GstPushSrc *src, GstBuffer **buf);
|
||||||
/* allocate memory for a buffer */
|
/**
|
||||||
|
* GstPushSrcClass::alloc:
|
||||||
|
* @buf: (out):
|
||||||
|
*
|
||||||
|
* Allocate memory for a buffer.
|
||||||
|
*/
|
||||||
GstFlowReturn (*alloc) (GstPushSrc *src, GstBuffer **buf);
|
GstFlowReturn (*alloc) (GstPushSrc *src, GstBuffer **buf);
|
||||||
/* ask the subclass to fill a buffer */
|
/* ask the subclass to fill a buffer */
|
||||||
GstFlowReturn (*fill) (GstPushSrc *src, GstBuffer *buf);
|
GstFlowReturn (*fill) (GstPushSrc *src, GstBuffer *buf);
|
||||||
|
|
Loading…
Reference in a new issue