summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/x11/xcb_event_source.h
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-07-01 00:07:23 +1000
committerMatthew Waters <matthew@centricular.com>2016-11-08 15:14:26 +1100
commit4f6c226bd24ae3ef66bd8f4c17b001444c9b0bf1 (patch)
treef4e7cf1170b9a3036a13354d8caea46d9fac993b /gst-libs/gst/gl/x11/xcb_event_source.h
parente4916fb1ef8e5ecc075978b98f50bd799faf83e0 (diff)
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')
-rw-r--r--gst-libs/gst/gl/x11/xcb_event_source.h29
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
index 000000000..ba476352a
--- /dev/null
+++ b/gst-libs/gst/gl/x11/xcb_event_source.h
@@ -0,0 +1,29 @@
+/*
+ * GStreamer
+ * Copyright (C) 2012 Matthew Waters <ystreet00@gmail.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.
+ */
+
+#ifndef __XCB_EVENT_SOURCE_H__
+#define __XCB_EVENT_SOURCE_H__
+
+#include <glib-object.h>
+#include "gstgldisplay_x11.h"
+
+GSource * xcb_event_source_new (GstGLDisplayX11 *display_x11);
+
+#endif /* __XCB_EVENT_SOURCE_H__ */