From 17022f7ad11569bb75319bcccc6ad12a0a7576f8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 25 Jun 2012 09:32:41 +0200 Subject: [PATCH] memory: improve docs Mention that custom allocator functions can pass whatever they want to the user_data. --- gst/gstmemory.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/gstmemory.h b/gst/gstmemory.h index e37fdf4..14fa8f8 100644 --- a/gst/gstmemory.h +++ b/gst/gstmemory.h @@ -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() */ -- 2.7.4