From c645e417110e7c28cc49efa3767f19084e699ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 28 Mar 2013 16:51:51 +0100 Subject: egl: Add a boxed type for GstEGLDisplay --- gst-libs/gst/egl/egl.c | 4 ++++ gst-libs/gst/egl/egl.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'gst-libs') 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); -- cgit v1.2.1