[890/906] x11: add display subclass
authorMatthew Waters <ystreet00@gmail.com>
Wed, 27 Nov 2013 06:52:46 +0000 (17:52 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:33 +0000 (19:31 +0000)
commit303b77eeff5d3715ba74bf886ecf3cfd84ae5b0c
treeb466529b715410de91afac71e9cdc111a838fddf
parentadfbafe36c22e90b2e2c1f32cc43ede3fdf369db
[890/906] x11: add display subclass

GstGLDisplayX11 holds the display connection and name.  Each thread requires
it's own X11 Display connection (initialised from name) due to the fact that
we do not want to call XInitThreads().  Doing so would result in segfaults
when integrating with GUI toolkits Gtk, Qt, etc.

The Display connection is for OpenGL platforms where a constant display is
required in order to share contexts (egl).  In the case of a wrapped context
(added later), we do not have GstGLWindow to retreive the display from so a
'master' connection is used instead.
gst-libs/gst/gl/egl/gstglcontext_egl.c
gst-libs/gst/gl/gstgldisplay.c
gst-libs/gst/gl/gstgldisplay.h
gst-libs/gst/gl/gstglwindow.c
gst-libs/gst/gl/x11/Makefile.am
gst-libs/gst/gl/x11/gstgldisplay_x11.c [new file with mode: 0644]
gst-libs/gst/gl/x11/gstgldisplay_x11.h [new file with mode: 0644]
gst-libs/gst/gl/x11/gstglwindow_x11.c
gst-libs/gst/gl/x11/gstglwindow_x11.h
gst-libs/gst/gl/x11/x11_event_source.c