projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
egl: handle configless contexts
[platform/upstream/gstreamer.git]
/
subprojects
/
gst-plugins-base
/
gst-libs
/
gst
/
gl
/
egl
/
gstglcontext_egl.c
diff --git
a/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c
b/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c
index
24f2091
..
d3515e1
100644
(file)
--- a/
subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c
+++ b/
subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c
@@
-1458,6
+1458,12
@@
gst_gl_context_egl_fill_info (GstGLContext * context, GError ** error)
goto failure;
}
+ if (config_id == 0) {
+ GST_INFO_OBJECT (context, "egl config not available. ID is 0");
+ gst_object_unref (display_egl);
+ return TRUE;
+ }
+
attrs[0] = EGL_CONFIG_ID;
attrs[1] = config_id;
attrs[2] = EGL_NONE;