gstgldisplay: Add public foreign_display property
authorDylan McCall <dylan@endlessm.com>
Wed, 26 Jun 2019 02:15:29 +0000 (19:15 -0700)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 8 Jul 2019 20:46:58 +0000 (20:46 +0000)
commit2e686b0dad9700b10d91da5e91f34849fa7d32ae
tree733a15101f514a89e3b2491a042586b44af8a7be
parent18351dcd245d839d3b6926a2c790684c80583a37
gstgldisplay: Add public foreign_display property

We use this property in gst_gl_display_egl_from_gl_display, to set
foreign_display for the new GstGLDisplayEGL instance. This fixes a
problem where gst_gl_display_egl_finalize calls EglTerminate on a
pre-existing EGL connection.
gst-libs/gst/gl/egl/gstgldisplay_egl.c
gst-libs/gst/gl/gstgldisplay.c
gst-libs/gst/gl/gstgldisplay.h
gst-libs/gst/gl/wayland/gstgldisplay_wayland.c
gst-libs/gst/gl/x11/gstgldisplay_x11.c