From 68b4ddff12f47d04c18fe299def715b142193dcc Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 19 Dec 2012 14:54:21 +1100 Subject: [PATCH] [634/906] wayland egl: deactivate context before we destroy it avoids a segfault with dri drivers --- gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c index 6111379267..ca301278ac 100644 --- a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c +++ b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c @@ -453,6 +453,8 @@ failure: static void gst_gl_window_wayland_egl_destroy_context (GstGLWindowWaylandEGL * window_egl) { + gst_gl_window_wayland_egl_activate (GST_GL_WINDOW (window_egl), FALSE); + destroy_surface (window_egl); if (window_egl->egl_context)