summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaihua Hu <jared.hu@nxp.com>2017-02-08 00:45:32 +0800
committerMatthew Waters <matthew@centricular.com>2017-02-09 13:20:57 +1100
commit136379a2842033828de659a440cda41574f7366d (patch)
tree272dbcef6bb1bee4b5074f483113d3d7cca41024
parent46dea653a9af5886a29d788dc40a66ebf1051b11 (diff)
downloadgstreamer-plugins-bad-136379a2842033828de659a440cda41574f7366d.tar.gz
gl/window: attach the GMaincontext in window struct to GSource for X11 window
https://bugzilla.gnome.org/show_bug.cgi?id=778297
-rw-r--r--gst-libs/gst/gl/x11/gstglwindow_x11.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/x11/gstglwindow_x11.c b/gst-libs/gst/gl/x11/gstglwindow_x11.c
index d08b757dc..91aa841c8 100644
--- a/gst-libs/gst/gl/x11/gstglwindow_x11.c
+++ b/gst-libs/gst/gl/x11/gstglwindow_x11.c
@@ -173,8 +173,7 @@ gst_gl_window_x11_open (GstGLWindow * window, GError ** error)
if (!display_x11->foreign_display) {
window_x11->x11_source = x11_event_source_new (window_x11);
- g_source_attach (window_x11->x11_source,
- g_main_context_get_thread_default ());
+ g_source_attach (window_x11->x11_source, window->main_context);
}
window_x11->allow_extra_expose_events = TRUE;