bradh
October 13, 2024, 6:50am
1
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?
slomo
October 13, 2024, 1:12pm
2
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
bradh
October 15, 2024, 8:36am
3
Thanks for the insight and providing the example code.
1 Like