From d05d52e0ad58132f12b5234c8a43a5e9ce251bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 11 Nov 2018 08:52:27 +0200 Subject: [PATCH] gl: Make sure that GST_GLSL_PROFILE_ANY gets the correct value in introspection Currently in Python it would become a signed 64 bit value but should actually be an unsigned 32 bit value with all bits set. This is the same problem as with GST_MESSAGE_TYPE_ANY. See https://bugzilla.gnome.org/show_bug.cgi?id=732633 --- gst-libs/gst/gl/gstglsl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglsl.h b/gst-libs/gst/gl/gstglsl.h index 5e4ea7a99c..d5d2235a48 100644 --- a/gst-libs/gst/gl/gstglsl.h +++ b/gst-libs/gst/gl/gstglsl.h @@ -110,6 +110,9 @@ typedef enum * * Since: 1.8 */ +/* FIXME: For GST_GLSL_PROFILE_ANY ~0 -> 0xffffffff see + * https://bugzilla.gnome.org/show_bug.cgi?id=732633 +*/ typedef enum { /* XXX: maybe make GstGLAPI instead */ @@ -119,7 +122,7 @@ typedef enum GST_GLSL_PROFILE_CORE = (1 << 1), GST_GLSL_PROFILE_COMPATIBILITY = (1 << 2), - GST_GLSL_PROFILE_ANY = -1, + GST_GLSL_PROFILE_ANY = (gint) (0xffffffff), } GstGLSLProfile; GST_GL_API