docs: gst_dmabuf_allocator_alloc: Improve documentation
authorWilliam Manley <will@williammanley.net>
Wed, 22 Oct 2014 12:37:40 +0000 (13:37 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Mon, 3 Nov 2014 14:02:46 +0000 (09:02 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=739545

gst-libs/gst/allocators/gstdmabuf.c

index 02a5eed..e435681 100644 (file)
@@ -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
  */