diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-03-28 16:51:51 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-03-28 16:53:35 +0100 |
commit | c645e417110e7c28cc49efa3767f19084e699ebb (patch) | |
tree | 9a95b6d91dbc9d963cbb65a3605c8717c1cc2e9f | |
parent | 26c1514491901867a0251302565ce0a24e9a65f7 (diff) |
egl: Add a boxed type for GstEGLDisplay
-rw-r--r-- | gst-libs/gst/egl/egl.c | 4 | ||||
-rw-r--r-- | gst-libs/gst/egl/egl.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gst-libs/gst/egl/egl.c b/gst-libs/gst/egl/egl.c index a0d65cab0..b7e7d6bfd 100644 --- a/gst-libs/gst/egl/egl.c +++ b/gst-libs/gst/egl/egl.c @@ -337,3 +337,7 @@ gst_egl_display_get (GstEGLDisplay * display) return display->display; } +G_DEFINE_BOXED_TYPE (GstEGLDisplay, gst_egl_display, + (GBoxedCopyFunc) gst_egl_display_ref, + (GBoxedFreeFunc) gst_egl_display_unref); + diff --git a/gst-libs/gst/egl/egl.h b/gst-libs/gst/egl/egl.h index 9e6f2ae60..099c900d2 100644 --- a/gst-libs/gst/egl/egl.h +++ b/gst-libs/gst/egl/egl.h @@ -69,6 +69,9 @@ GstMemory * gst_egl_image_allocator_alloc (GstAllocator * allocator, GstEGLDispl GstMemory * gst_egl_image_allocator_wrap (GstAllocator * allocator, GstEGLDisplay * display, EGLImageKHR image, GstEGLImageType type, GstMemoryFlags flags, gsize size, gpointer user_data, GDestroyNotify user_data_destroy); /* EGLDisplay wrapper with refcount, connection is closed after last ref is gone */ +#define GST_TYPE_EGL_DISPLAY (gst_egl_display_get_type()) +GType gst_egl_display_get_type(void); + GstEGLDisplay * gst_egl_display_new (EGLDisplay display); GstEGLDisplay * gst_egl_display_ref (GstEGLDisplay * display); void gst_egl_display_unref (GstEGLDisplay * display); |