summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-03-13 19:04:47 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-03-15 11:26:36 +0100
commit0ea0eb15795f2cbc75eb2fc177020ee4a3343961 (patch)
tree990722d5ec2f6f8f83227373f42cd7862da585ad
parent0700d6875f5222b156453d9c58cd9c4d24860a13 (diff)
omxbufferpool: add proper type definitions
https://bugzilla.gnome.org/show_bug.cgi?id=726325
-rw-r--r--omx/gstomxbufferpool.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/omx/gstomxbufferpool.h b/omx/gstomxbufferpool.h
index 3916b31..f2c008d 100644
--- a/omx/gstomxbufferpool.h
+++ b/omx/gstomxbufferpool.h
@@ -33,7 +33,13 @@
G_BEGIN_DECLS
-#define GST_OMX_BUFFER_POOL(pool) ((GstOMXBufferPool *) pool)
+#define GST_TYPE_OMX_BUFFER_POOL \
+ (gst_omx_buffer_pool_get_type())
+#define GST_OMX_BUFFER_POOL(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OMX_BUFFER_POOL,GstOMXBufferPool))
+#define GST_IS_OMX_BUFFER_POOL(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OMX_BUFFER_POOL))
+
typedef struct _GstOMXBufferPool GstOMXBufferPool;
typedef struct _GstOMXBufferPoolClass GstOMXBufferPoolClass;