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 {