Getting buffer metadata with a plugin written in python
For the sake of flexibility, we want to write a plugin in python (through pygi).
I can write a "hello world" plugin, but I don't succeed in getting metadata linked with buffers.
I can get the adress of the corresponding metadata, but all I get is a "void" object.
Here is a snippet of what I try :
def do_transform_ip(self, buf):
meta = buf.get_meta("MyMetaAPI")
MyMetaAPI comes from a C header file and it seems well defined as the print instruction shows the adress of the void pointer (and the adress is the same as in another plugin in the pipeline). However, meta.flags shows "<flags 0 of type GstMetaFlags>".