From c97f10d7d8923557f49ca1fa4b39b05f32137c36 Mon Sep 17 00:00:00 2001 From: William Manley Date: Wed, 22 Oct 2014 13:37:40 +0100 Subject: [PATCH] docs: gst_dmabuf_allocator_alloc: Improve documentation https://bugzilla.gnome.org/show_bug.cgi?id=739545 --- gst-libs/gst/allocators/gstdmabuf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/allocators/gstdmabuf.c b/gst-libs/gst/allocators/gstdmabuf.c index 02a5eed..e435681 100644 --- a/gst-libs/gst/allocators/gstdmabuf.c +++ b/gst-libs/gst/allocators/gstdmabuf.c @@ -294,7 +294,9 @@ gst_dmabuf_allocator_alloc (GstAllocator * allocator, gint fd, gsize size) * * Return the file descriptor associated with @mem. * - * Returns: the file descriptor associated with the memory, or -1 + * Returns: the file descriptor associated with the memory, or -1. The file + * descriptor is still owned by the GstMemory. Use dup to take a copy + * if you intend to use it beyond the lifetime of this GstMemory. * * Since: 1.2 */ -- 2.7.4