summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglslstage.c
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2015-11-10 20:15:56 +1100
committerMatthew Waters <matthew@centricular.com>2015-11-10 22:47:42 +1100
commit3d5ed23a72d2c6c83189a003eecf3159b393b4d6 (patch)
tree0f2bcd013a488f2fbcc1244faa367ff22dd9c23e /gst-libs/gst/gl/gstglslstage.c
parent776ccf87b527b29139d2975ef8dafb9bdcf4add8 (diff)
glslstage: add debug as to why _set_strings() failed
Diffstat (limited to 'gst-libs/gst/gl/gstglslstage.c')
-rw-r--r--gst-libs/gst/gl/gstglslstage.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/gstglslstage.c b/gst-libs/gst/gl/gstglslstage.c
index 89f97cff4..bd0405f38 100644
--- a/gst-libs/gst/gl/gstglslstage.c
+++ b/gst-libs/gst/gl/gstglslstage.c
@@ -295,8 +295,13 @@ gst_glsl_stage_set_strings (GstGLSLStage * stage, GstGLSLVersion version,
g_return_val_if_fail (str != NULL, FALSE);
if (!gst_gl_context_supports_glsl_profile_version (stage->context, version,
- profile))
+ profile)) {
+ const gchar *version_str = gst_glsl_version_to_string (version);
+ const gchar *profile_str = gst_glsl_profile_to_string (profile);
+ GST_ERROR_OBJECT (stage, "GL context does not support version %s and "
+ "profile %s", version_str, profile_str);
return FALSE;
+ }
stage->priv->version = version;
stage->priv->profile = profile;