allocators: Annotate constructors with (transfer floating)

GstAllocator is a GstObject and as such uses floating references.

https://bugzilla.gnome.org/show_bug.cgi?id=702960
This commit is contained in:
Sebastian Dröge 2017-05-15 14:19:15 +03:00
parent e0d793f793
commit 7185a7ac98
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ gst_dmabuf_allocator_init (GstDmaBufAllocator * allocator)
*
* Return a new dmabuf allocator.
*
* Returns: (transfer full): a new dmabuf allocator, or NULL if the allocator
* Returns: (transfer floating): a new dmabuf allocator, or NULL if the allocator
* isn't available. Use gst_object_unref() to release the allocator after
* usage
*

View file

@ -236,7 +236,7 @@ gst_fd_allocator_init (GstFdAllocator * allocator)
*
* Return a new fd allocator.
*
* Returns: (transfer full): a new fd allocator, or NULL if the allocator
* Returns: (transfer floating): a new fd allocator, or NULL if the allocator
* isn't available. Use gst_object_unref() to release the allocator after
* usage
*