From 944c71f9531807e7a4e006cb446a31780ab56427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 10 Jul 2017 17:13:49 +0300 Subject: [PATCH] Implement StaticType for Structure --- gstreamer/src/structure.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gstreamer/src/structure.rs b/gstreamer/src/structure.rs index ab0eb1161..e69168602 100644 --- a/gstreamer/src/structure.rs +++ b/gstreamer/src/structure.rs @@ -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;