summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2019-09-18 15:29:03 +1000
committerTim-Philipp Müller <tim@centricular.com>2019-09-19 13:50:06 +0100
commit2e43a67a30293fbd36823420bbf92f4b85ff7451 (patch)
tree91997857f0961135207c265b573972ee8b31215b
parent8c11de79260105c5ad38454c7766290e6994fa11 (diff)
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.
-rw-r--r--gst-libs/gst/vaapi/gstvaapiutils_egl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiutils_egl.c b/gst-libs/gst/vaapi/gstvaapiutils_egl.c
index 0bd02505..801aef2b 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;
}