How to address GstMeta Object in python

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to address GstMeta Object in python

Edgar Thier
Hi all,

How can I get the Information in a custom GstMeta object in python?
I can get the base class with:

     meta = gst_buffer.get_meta("StatisticsMeta")

     print(type(meta) # returns <class 'gi.repository.Gst.Meta'>

But how do I convert it to my derived class?
Is there a introspection method i can call to have it be done automatically?
Do I have to write a custom introspection wrapper?

Using ctypes should not be possible since that would require a mixture of
ctypes and existing python classes (in this case Gst.Meta).

Thanks for any help, pointers to documentation or tutorials.

Regards,

Edgar
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel