Don't require Send for Structure::get()

Otherwise we won't be able to get references here.
This commit is contained in:
Sebastian Dröge 2017-11-16 13:39:01 +02:00
parent 9085474e37
commit d430467ed5

View file

@ -289,7 +289,7 @@ impl StructureRef {
unsafe { from_glib_full(ffi::gst_structure_to_string(&self.0)) }
}
pub fn get<'a, T: FromValueOptional<'a> + Send>(&'a self, name: &str) -> Option<T> {
pub fn get<'a, T: FromValueOptional<'a>>(&'a self, name: &str) -> Option<T> {
self.get_value(name).and_then(|v| v.get())
}