diff --git a/gst/gstmemory.c b/gst/gstmemory.c index ebaefc3a42..7ea238022f 100644 --- a/gst/gstmemory.c +++ b/gst/gstmemory.c @@ -61,6 +61,8 @@ #include "gst_private.h" #include "gstmemory.h" +G_DEFINE_BOXED_TYPE (GstMemory, gst_memory, (GBoxedCopyFunc) gst_memory_ref, + (GBoxedFreeFunc) gst_memory_unref); /* buffer alignment in bytes - 1 * an alignment of 7 would be the same as malloc() guarantees diff --git a/gst/gstmemory.h b/gst/gstmemory.h index c1f8e67c23..c4d618706f 100644 --- a/gst/gstmemory.h +++ b/gst/gstmemory.h @@ -29,6 +29,9 @@ G_BEGIN_DECLS +#define GST_TYPE_MEMORY (gst_memory_get_type()) +GType gst_memory_get_type(void); + typedef struct _GstMemory GstMemory; typedef struct _GstMemoryInfo GstMemoryInfo; typedef struct _GstAllocator GstAllocator;