gstreamer/gst-libs/gst/gl/x11
Vasilis Liaskovitis f803a9e746 GstGLWindow: Introduce navigation thread
This thread dispatches navigation events. It is needed to avoid deadlocks
between window backend threads that emit navigation events (e.g. X11/GMainLoop
thread) and consumers of navigation events such as glimagesink, see
https://bugzilla.gnome.org/show_bug.cgi?id=733661

GstGlWindow_x11 thread is changed to invoke the navigation thread for navigation
dispatching, instead of emiting the event itself. Othe backends beside X11 do
not dispatch navigation events yet, but should use this thread when dispatching
these events in the future.

The navigation thread is currently part of GstGLWindow and not implemented in
separate subclasses / backends. This will be needed in the future.

gst_gl_window_x11_get_surface_dimensions is also changed to use a cached value
of the window's width, height. These values are now retrieved in the X11
thread, function gst_gl_window_x11_handle_event. This change is needed because
otherwise the XGetWindowAttributes gets called from the navigation thread,
leading to xlib aborting due to multithreaded access (if XInitThreads is not
called before, as is the case for gst-launch)
2017-12-09 19:31:46 +00:00
..
gstglcontext_glx.c glcontext: implement the debug callback 2017-12-09 19:31:45 +00:00
gstglcontext_glx.h [794/906] context: add subclasses for the different platforms (egl, glx, wgl, etc) 2017-12-09 19:31:30 +00:00
gstgldisplay_x11.c [890/906] x11: add display subclass 2017-12-09 19:31:33 +00:00
gstgldisplay_x11.h [890/906] x11: add display subclass 2017-12-09 19:31:33 +00:00
gstglwindow_x11.c GstGLWindow: Introduce navigation thread 2017-12-09 19:31:46 +00:00
gstglwindow_x11.h GstGLWindow: Introduce navigation thread 2017-12-09 19:31:46 +00:00
Makefile.am gl: remove commented and unsued code in x11 Makefile.am 2017-12-09 19:31:35 +00:00
x11_event_source.c [890/906] x11: add display subclass 2017-12-09 19:31:33 +00:00
x11_event_source.h [725/906] x11: use GMainContext/GMainLoop 2017-12-09 19:31:29 +00:00