GstVideoInfo info;
gboolean add_metavideo;
gboolean want_eglimage;
- GstEGLDisplay *display;
GstEGLImageBufferPoolSendBlockingAllocate send_blocking_allocate_func;
gpointer send_blocking_allocate_data;
GST_TYPE_VIDEO_BUFFER_POOL);
static GstBufferPool *gst_egl_image_buffer_pool_new (GstEglGlesSink *
- eglglessink, GstEGLDisplay * display,
+ eglglessink,
GstEGLImageBufferPoolSendBlockingAllocate blocking_allocate_func,
gpointer blocking_allocate_data, GDestroyNotify destroy_func);
gst_object_unref (pool->sink);
pool->sink = NULL;
- if (pool->display)
- gst_egl_display_unref (pool->display);
- pool->display = NULL;
-
if (pool->send_blocking_allocate_destroy)
pool->send_blocking_allocate_destroy (pool->send_blocking_allocate_data);
pool->send_blocking_allocate_destroy = NULL;
GST_DEBUG_OBJECT (eglglessink, "create new pool");
pool =
gst_egl_image_buffer_pool_new (eglglessink,
- eglglessink->egl_context->display,
gst_eglglessink_egl_image_buffer_pool_send_blocking,
gst_object_ref (eglglessink),
gst_eglglessink_egl_image_buffer_pool_on_destroy);
newpool =
gst_egl_image_buffer_pool_new (eglglessink,
- eglglessink->egl_context->display,
gst_eglglessink_egl_image_buffer_pool_send_blocking,
gst_object_ref (eglglessink),
gst_eglglessink_egl_image_buffer_pool_on_destroy);
}
static GstBufferPool *
-gst_egl_image_buffer_pool_new (GstEglGlesSink *
- eglglessink, GstEGLDisplay * display,
+gst_egl_image_buffer_pool_new (GstEglGlesSink * eglglessink,
GstEGLImageBufferPoolSendBlockingAllocate blocking_allocate_func,
gpointer blocking_allocate_data, GDestroyNotify destroy_func)
{
GstEGLImageBufferPool *pool;
pool = g_object_new (gst_egl_image_buffer_pool_get_type (), NULL);
- pool->display = gst_egl_display_ref (display);
pool->sink = gst_object_ref (eglglessink);
pool->send_blocking_allocate_func = blocking_allocate_func;
pool->send_blocking_allocate_data = blocking_allocate_data;