gl: return NULL mem if eglCreateImage failed
authorJulien Isorce <jisorce@oblong.com>
Tue, 1 Aug 2017 09:21:51 +0000 (10:21 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:29 +0000 (19:32 +0000)
commita50c09ac266d47ebde97a1b5b787a02d8262343d
treec95320fdf57ba3b239a39225812c5d6cb51f2c04
parent5c4b47e6151dd340dea2cf7b70048ad66e4ac91a
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