From a1a841afc809fcf9557928867d420caaee6e8f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 26 Oct 2017 14:02:36 +0200 Subject: [PATCH] Require Send+'static for Buffer::from_*slice() --- gstreamer/src/buffer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstreamer/src/buffer.rs b/gstreamer/src/buffer.rs index 47690a9fe..1748391e0 100644 --- a/gstreamer/src/buffer.rs +++ b/gstreamer/src/buffer.rs @@ -69,7 +69,7 @@ impl GstRc { drop(slice); } - pub fn from_mut_slice>(slice: T) -> Option { + pub fn from_mut_slice + Send + 'static>(slice: T) -> Option { assert_initialized_main_thread!(); let raw = unsafe { @@ -97,7 +97,7 @@ impl GstRc { } } - pub fn from_slice>(slice: T) -> Option { + pub fn from_slice + Send + 'static>(slice: T) -> Option { assert_initialized_main_thread!(); let raw = unsafe {