summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglslstage.c
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2015-11-11 11:29:35 +1100
committerMatthew Waters <matthew@centricular.com>2015-11-11 11:29:35 +1100
commit8d8063060e50a6c91946356f6655e4b5264ed09a (patch)
tree377820e7822f0f8661c800d16fa7cff48ede6343 /gst-libs/gst/gl/gstglslstage.c
parent21bd8ee536f13f25c830f74b04dd84008dff0226 (diff)
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.
Diffstat (limited to 'gst-libs/gst/gl/gstglslstage.c')
-rw-r--r--gst-libs/gst/gl/gstglslstage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglslstage.c b/gst-libs/gst/gl/gstglslstage.c
index bd0405f38..1eb99ceaa 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;
}