Commit a1a841af authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Require Send+'static for Buffer::from_*slice()

parent f08f0f6f
......@@ -69,7 +69,7 @@ impl GstRc<BufferRef> {
drop(slice);
}
pub fn from_mut_slice<T: AsMut<[u8]>>(slice: T) -> Option<Self> {
pub fn from_mut_slice<T: AsMut<[u8]> + Send + 'static>(slice: T) -> Option<Self> {
assert_initialized_main_thread!();
let raw = unsafe {
......@@ -97,7 +97,7 @@ impl GstRc<BufferRef> {
}
}
pub fn from_slice<T: AsRef<[u8]>>(slice: T) -> Option<Self> {
pub fn from_slice<T: AsRef<[u8]> + Send + 'static>(slice: T) -> Option<Self> {
assert_initialized_main_thread!();
let raw = unsafe {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment