Skip to content

Commit

Permalink
gl: Make sure that GST_GLSL_PROFILE_ANY gets the correct value in int…
Browse files Browse the repository at this point in the history
…rospection

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
  • Loading branch information
sdroege authored and ystreet committed Nov 12, 2018
1 parent 989f533 commit d05d52e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gst-libs/gst/gl/gstglsl.h
Expand Up @@ -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 */
Expand All @@ -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
Expand Down

0 comments on commit d05d52e

Please sign in to comment.