From d430467ed5d468ac51506e6fea4810172868444f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 16 Nov 2017 13:39:01 +0200 Subject: [PATCH] Don't require Send for Structure::get() Otherwise we won't be able to get references here. --- gstreamer/src/structure.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/structure.rs b/gstreamer/src/structure.rs index f9a95f3a6..865de18a0 100644 --- a/gstreamer/src/structure.rs +++ b/gstreamer/src/structure.rs @@ -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 { + pub fn get<'a, T: FromValueOptional<'a>>(&'a self, name: &str) -> Option { self.get_value(name).and_then(|v| v.get()) }