memory: improve docs
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 25 Jun 2012 07:32:41 +0000 (09:32 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 25 Jun 2012 07:33:18 +0000 (09:33 +0200)
Mention that custom allocator functions can pass whatever they want to the
user_data.

gst/gstmemory.h

index e37fdf4..14fa8f8 100644 (file)
@@ -247,7 +247,9 @@ struct _GstAllocationParams {
  * be filled with 0 if @params flags contains #GST_MEMORY_FLAG_ZERO_PREFIXED and
  * #GST_MEMORY_FLAG_ZERO_PADDED respectively.
  *
- * @user_data is the data that was used when creating @allocator.
+ * @user_data is extra data passed to this function. The default
+ * gst_allocator_alloc() passes the user_data that was used when creating
+ * @allocator.
  *
  * Returns: a newly allocated #GstMemory. Free with gst_memory_unref()
  */