Skip to content

Writable array requested but buffer is not writeable #17

@subodh-malgonde

Description

@subodh-malgonde

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions