Commit 944c71f9 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Implement StaticType for Structure

parent 1264f2f5
......@@ -151,6 +151,14 @@ impl ToOwned for StructureRef {
}
}
impl glib::types::StaticType for Structure {
fn static_type() -> glib::types::Type {
unsafe {
from_glib(ffi::gst_structure_get_type())
}
}
}
impl<'a> ToGlibPtr<'a, *const ffi::GstStructure> for Structure {
type Storage = &'a Self;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment