forked from mirrors/gstreamer-rs
Implement StaticType for Structure
This commit is contained in:
parent
1264f2f5c0
commit
944c71f953
1 changed files with 8 additions and 0 deletions
|
@ -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 {
|
impl<'a> ToGlibPtr<'a, *const ffi::GstStructure> for Structure {
|
||||||
type Storage = &'a Self;
|
type Storage = &'a Self;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue