[634/906] wayland egl: deactivate context before we destroy it
authorMatthew Waters <ystreet00@gmail.com>
Wed, 19 Dec 2012 03:54:21 +0000 (14:54 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:26 +0000 (19:31 +0000)
avoids a segfault with dri drivers

gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c

index 6111379..ca30127 100644 (file)
@@ -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)