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
This commit is contained in:
Vineeth TM 2015-12-28 09:04:12 +09:00 committed by Tim-Philipp Müller
parent 45d7796949
commit 8917f84993

View file

@ -271,11 +271,8 @@ gst_gl_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer,
GstGLMemoryAllocator *alloc; GstGLMemoryAllocator *alloc;
GstGLBufferPool *glpool = GST_GL_BUFFER_POOL_CAST (pool); GstGLBufferPool *glpool = GST_GL_BUFFER_POOL_CAST (pool);
GstGLBufferPoolPrivate *priv = glpool->priv; GstGLBufferPoolPrivate *priv = glpool->priv;
GstVideoInfo *info;
GstBuffer *buf; GstBuffer *buf;
info = priv->gl_params->v_info;
if (!(buf = gst_buffer_new ())) { if (!(buf = gst_buffer_new ())) {
goto no_buffer; goto no_buffer;
} }
@ -283,7 +280,8 @@ gst_gl_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer,
if (priv->want_eglimage) { if (priv->want_eglimage) {
/* alloc and append memories, also add video_meta and /* alloc and append memories, also add video_meta and
* texture_upload_meta */ * 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; goto egl_image_mem_create_failed;
*buffer = buf; *buffer = buf;