|author||Matthew Waters <email@example.com>||2016-07-01 00:07:23 +1000|
|committer||Matthew Waters <firstname.lastname@example.org>||2016-11-08 15:14:26 +1100|
gl/x11: use xcb instead of libX11
- xcb is supposedly thread-safe! videotestsrc ! glimagesink now doesn't spuriously result in a 'call XInitThreads()' error however if anybody else is using X11, then XInitThreads() still needs to be called and multiple glimagesink's still need XInitThreads(). Everything still takes libX11 handles as they are compatible with the xcb variants. Unfortunately we cannot move fully over to xcb due to GLX being entirely based on Xlib. It's also impossible to transform a xcb_connection to a Display which means we require X11 handles.
Diffstat (limited to 'gst-libs/gst/gl/x11/xcb_event_source.h')
1 files changed, 29 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/x11/xcb_event_source.h b/gst-libs/gst/gl/x11/xcb_event_source.h
new file mode 100644
@@ -0,0 +1,29 @@
+ * GStreamer
+ * Copyright (C) 2012 Matthew Waters <email@example.com>
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+GSource * xcb_event_source_new (GstGLDisplayX11 *display_x11);
+#endif /* __XCB_EVENT_SOURCE_H__ */