From 1f35fcf06dd414c9ee77d0dc82b1ae8ec67c1b20 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 11 Nov 2015 11:29:35 +1100 Subject: [PATCH] glslstage: properly return an error when we could not create the shader stage While it was erroring out correctly later, there were GLib warnings about setting a GError over the top of another GError. --- gst-libs/gst/gl/gstglslstage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/gl/gstglslstage.c b/gst-libs/gst/gl/gstglslstage.c index bd0405f..1eb99ce 100644 --- a/gst-libs/gst/gl/gstglslstage.c +++ b/gst-libs/gst/gl/gstglslstage.c @@ -436,6 +436,7 @@ _compile_shader (GstGLContext * context, struct compile *data) if (!_ensure_shader (data->stage)) { g_set_error (data->error, GST_GLSL_ERROR, GST_GLSL_ERROR_COMPILE, "Failed to create shader object"); + data->result = FALSE; return; } -- 2.7.4