From 69d56a2927711ff28e24c875593d9698eb9054df Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 23 Feb 2012 15:32:33 +0100 Subject: [PATCH] memory: add user_data to GstMapInfo Add extra pointers to GstMapInfo so that implementations can use these to store extra info. --- gst/gstmemory.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/gstmemory.h b/gst/gstmemory.h index 8ffc34f..7ec50f4 100644 --- a/gst/gstmemory.h +++ b/gst/gstmemory.h @@ -134,6 +134,8 @@ typedef enum { * @data: a pointer to the mapped data * @size: the valid size in @data * @maxsize: the maximum bytes in @data + * @user_data: extra private user_data that the implementation of the memory + * can use to store extra info. * * A structure containing the result of a map operation such as * gst_memory_map(). It contains the data and size. @@ -144,9 +146,11 @@ typedef struct { guint8 *data; gsize size; gsize maxsize; + /*< private >*/ + gpointer user_data[4]; } GstMapInfo; -#define GST_MAP_INFO_INIT { NULL, 0, NULL, 0, 0 } +#define GST_MAP_INFO_INIT { NULL, 0, NULL, 0, 0, } /** * GST_MAP_READWRITE: -- 2.7.4