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

Writable array requested but buffer is not writeable #17

Open
subodh-malgonde opened this issue Feb 28, 2022 · 0 comments
Open

Writable array requested but buffer is not writeable #17

subodh-malgonde opened this issue Feb 28, 2022 · 0 comments

Comments

@subodh-malgonde
Copy link

I am trying to draw some shapes on the video stream using PyCairo:

with map_gst_buffer(buffer, Gst.MapFlags.READ | Gst.MapFlags.WRITE) as mapped:
     # code to draw shapes

However I get an error:

Writable array requested but buffer is not writeable

This error is raised in the map_gst_buffer function in gst_hacks.py

    if flags & Gst.MapFlags.WRITE and _libgst.gst_mini_object_is_writable(ptr) == 0:
        raise ValueError(
            "Writable array requested but buffer is not writeable")

What am I missing here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant