glviewconvert: String literals are const

gstglviewconvert.c: In function '_mangle_extensions':
gstglviewconvert.c:1511:13: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
     ext_str = "#extension GL_OES_EGL_image_external : require\n";
             ^
This commit is contained in:
Sebastian Dröge 2015-11-17 17:09:51 +02:00
parent e2ea7843f9
commit 74ab40470c

View file

@ -1505,7 +1505,7 @@ _mangle_sampler_type (const gchar * str, GstGLTextureTarget from,
static gchar *
_mangle_extensions (const gchar * str, GstGLTextureTarget from)
{
gchar *ext_str = NULL;
const gchar *ext_str = NULL;
if (from == GST_GL_TEXTURE_TARGET_EXTERNAL_OES)
ext_str = "#extension GL_OES_EGL_image_external : require\n";