From 2e8cdac0595a30c22d537b2bbee1c12816d1e1e1 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 18 Sep 2019 15:29:03 +1000 Subject: [PATCH] egl: don't advertise a wrapped EGLContext as actually wrapped It's not actually wrapped as we create a new EGLContext from the passed in EGLContext. As a result, the created EGLContext was never destroyed. --- gst-libs/gst/vaapi/gstvaapiutils_egl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiutils_egl.c b/gst-libs/gst/vaapi/gstvaapiutils_egl.c index 0bd0250..801aef2 100644 --- a/gst-libs/gst/vaapi/gstvaapiutils_egl.c +++ b/gst-libs/gst/vaapi/gstvaapiutils_egl.c @@ -1124,8 +1124,6 @@ egl_context_new_wrapped (EglDisplay * display, EGLContext gl_context) if (!success) return NULL; - if (args.context) - args.context->base.is_wrapped = TRUE; return args.context; } -- 2.7.4