gl/rpi: change dispmanx attributes of existing element instead of creating a new one
authorJulien Isorce <julien.isorce@collabora.co.uk>
Thu, 24 Apr 2014 13:50:57 +0000 (14:50 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:37 +0000 (19:31 +0000)
commit7a77d435c1b80043eb98f87b70e44c0e0bf8e5b1
tree06102ae34acb943cd594f518874e2f0507cc03fb
parent33a60e238cef0e8d8f66a5235e7a935dae632058
gl/rpi: change dispmanx attributes of existing element instead of creating a new one

I was lucky that:
e1 = vc_dispmanx_element_add ()
eglCreateWindowSurface (e1)
vc_dispmanx_element_remove (e1)
e2 = vc_dispmanx_element_add ()

resulted in having e2 equal to e1. And also having the egl surface
that does not allocate its buffers before the first draw.
gst-libs/gst/gl/dispmanx/gstglwindow_dispmanx_egl.c