mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
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:
parent
bb7d931475
commit
572b9788f5
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue