egl: Add a boxed type for GstEGLDisplay

This commit is contained in:
Sebastian Dröge 2013-03-28 16:51:51 +01:00
parent 26c1514491
commit c645e41711
2 changed files with 7 additions and 0 deletions

View file

@ -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);

View file

@ -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);