gl: return NULL mem if eglCreateImage failed
authorJulien Isorce <jisorce@oblong.com>
Tue, 1 Aug 2017 09:21:51 +0000 (10:21 +0100)
committerJulien Isorce <jisorce@oblong.com>
Tue, 1 Aug 2017 09:32:36 +0000 (10:32 +0100)
commitb89c94b37eda4e9c093b159d6536bbef2ef30e27
tree5b9fd934ce66bdc8e7e191bfaa0ae59c8bd614df
parentdb07f4507dad6561fc7e9320624aa7f0f0e10b36
gl: return NULL mem if eglCreateImage failed

Found on rpi when gpu_mem is too low so there is not enough memory to
create the eglimage. But still gst_buffer_pool_acquire_buffer succeeded.
And it leads to a CRITICAL assert:
  gst_egl_image_get_image: assertion 'GST_IS_EGL_IMAGE (image)' failed

https://bugzilla.gnome.org/show_bug.cgi?id=785518
gst-libs/gst/gl/egl/gstglmemoryegl.c