glslstage: properly return an error when we could not create the shader stage
authorMatthew Waters <matthew@centricular.com>
Wed, 11 Nov 2015 00:29:35 +0000 (11:29 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 11 Nov 2015 00:29:35 +0000 (11:29 +1100)
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

index bd0405f..1eb99ce 100644 (file)
@@ -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;
   }