GNOME Bugzilla – Bug 776722
gl/egl: don't pass a GError to gst_gl_context_egl_choose_config when trying gles2
Last modified: 2017-01-13 00:36:31 UTC
Created attachment 342725 [details] [review] gl/egl: don't pass a GError to gst_gl_context_egl_choose_config when trying gles2 as we are not interested in error since we are trying multiple gles2 versions and it causes GError functions to complain: (gst-launch-1.0:7674): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Failed to set window configuration: EGL_BAD_ATTRIBUTE.
Created attachment 342726 [details] [review] gl/egl: don't pass a GError to gst_gl_context_egl_choose_config when trying gles2 Oops, I forgot to add the bugzilla id.
Thanks! Pushed a slightly different patch that logs the error. commit d9f553bff50b15bd476c648926f5d2ae5cf30c72 Author: Matthew Waters <matthew@centricular.com> Date: Tue Jan 10 01:00:12 2017 +1100 glcontext/egl: don't overwrite set GError Doing so is an error and will cause a glib warning to be printed. https://bugzilla.gnome.org/show_bug.cgi?id=776722