buffer: add owner private as intermediate solution
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 24 Feb 2011 12:55:35 +0000 (13:55 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 24 Feb 2011 12:55:35 +0000 (13:55 +0100)
Add an owner private field where the owner of a buffer can store some extra
information. We can use this to implement most of the subclassing that happens
now. Later this will be removed and replaced by arbitrary buffer metadata.

gst/gstbuffer.h

index 4ad4c9e..61b1273 100644 (file)
@@ -285,6 +285,8 @@ struct _GstBuffer {
   GFreeFunc              free_func;
   GstBuffer             *parent;
 
+  gpointer               owner_priv;
+
   /*< private >*/
   gpointer _gst_reserved[GST_PADDING];
 };