Implementing a GstMeta in (safe) rust?

Is it possible to implement a new GstMeta in rust, ideally without unsafe?

My specific goal is to implement clock type and quality and timestamps to model the proposed ISO/IEC 23001-17:2024/FDAmd 1 time information.

If it is possible, is there an example to copy?

It’s currently not possible from just safe Rust. I think the only things really missing at this point from the safe Rust bindings is defining new metas, miniobjects and memories.

You can find an example of a custom meta with unsafe Rust here: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/blob/main/examples/src/bin/custom_meta.rs

1 Like

Thanks for the insight and providing the example code.

1 Like