summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst-libs/gst/egl/egl.c4
-rw-r--r--gst-libs/gst/egl/egl.h3
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);