[0.11] gstreamer: memory: add boxed GType for the allocator

Wim Taymans wtay at kemper.freedesktop.org
Mon Jan 30 04:30:18 PST 2012


Module: gstreamer
Branch: 0.11
Commit: f8c6cd196e6472d2859bac24d64c9b77d59852da
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=f8c6cd196e6472d2859bac24d64c9b77d59852da

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Mon Jan 30 13:28:34 2012 +0100

memory: add boxed GType for the allocator

---

 gst/gstmemory.c |    3 +++
 gst/gstmemory.h |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gst/gstmemory.c b/gst/gstmemory.c
index 4e822ed..573d4f1 100644
--- a/gst/gstmemory.c
+++ b/gst/gstmemory.c
@@ -73,6 +73,9 @@
 G_DEFINE_BOXED_TYPE (GstMemory, gst_memory, (GBoxedCopyFunc) gst_memory_ref,
     (GBoxedFreeFunc) gst_memory_unref);
 
+G_DEFINE_BOXED_TYPE (GstAllocator, gst_allocator,
+    (GBoxedCopyFunc) gst_allocator_ref, (GBoxedFreeFunc) gst_allocator_unref);
+
 /**
  * gst_memory_alignment:
  *
diff --git a/gst/gstmemory.h b/gst/gstmemory.h
index f3d3095..3d09972 100644
--- a/gst/gstmemory.h
+++ b/gst/gstmemory.h
@@ -32,6 +32,9 @@ G_BEGIN_DECLS
 #define GST_TYPE_MEMORY (gst_memory_get_type())
 GType gst_memory_get_type(void);
 
+#define GST_TYPE_ALLOCATOR (gst_allocator_get_type())
+GType gst_allocator_get_type(void);
+
 typedef struct _GstMemory GstMemory;
 typedef struct _GstMemoryInfo GstMemoryInfo;
 typedef struct _GstAllocator GstAllocator;



More information about the gstreamer-commits mailing list