From 572b9788f58ad1cf8608130e96ade2f860535035 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Mon, 28 Dec 2015 09:04:12 +0900 Subject: [PATCH] glbufferpool: Fix build error When GST_GL_HAVE_PLATFORM_EGL is not defined, then info variable will not be used and this results in build error https://bugzilla.gnome.org/show_bug.cgi?id=759913 --- gst-libs/gst/gl/gstglbufferpool.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/gl/gstglbufferpool.c b/gst-libs/gst/gl/gstglbufferpool.c index 16b5c9e843..c419ad5f7f 100644 --- a/gst-libs/gst/gl/gstglbufferpool.c +++ b/gst-libs/gst/gl/gstglbufferpool.c @@ -271,11 +271,8 @@ gst_gl_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer, GstGLMemoryAllocator *alloc; GstGLBufferPool *glpool = GST_GL_BUFFER_POOL_CAST (pool); GstGLBufferPoolPrivate *priv = glpool->priv; - GstVideoInfo *info; GstBuffer *buf; - info = priv->gl_params->v_info; - if (!(buf = gst_buffer_new ())) { goto no_buffer; } @@ -283,7 +280,8 @@ gst_gl_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer, if (priv->want_eglimage) { /* alloc and append memories, also add video_meta and * texture_upload_meta */ - if (!gst_egl_image_memory_setup_buffer (glpool->context, info, buf)) + if (!gst_egl_image_memory_setup_buffer (glpool->context, + priv->gl_params->v_info, buf)) goto egl_image_mem_create_failed; *buffer = buf;