Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enums that were previously handled as bitfields can no longer be extended #172

Closed
BwackNinja opened this issue Dec 27, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@BwackNinja
Copy link

This commit changed how Flags are handled, which is cleaner but too restrictive: ac888ae

Unfortunately, that breaks using org.freedesktop.gstreamer.gst.Buffer.map when using the flag GstGL.MAP_GL = 131072, defined in GstGL-1.0.gir. Without that, you cannot read GL frames from gstreamer when using java-gi, which is needed when using a shared context between gtk and gstreamer to display hardware GL video frames.

@jwharm
Copy link
Owner

jwharm commented Dec 27, 2024

Apparently MapFlags used by Buffer.map() is an "open enum" and GstGL adds their own flag constant.

I'll change this specific enum into int constants so that it will work.

@jwharm jwharm added the bug Something isn't working label Dec 27, 2024
@jwharm jwharm closed this as completed in e999b3f Dec 31, 2024
jwharm added a commit that referenced this issue Dec 31, 2024
Treat GstMapFlags as integers, to allow extended flags (fixes #172)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants