forked from mirrors/gstreamer-rs
Require Send+'static for Buffer::from_*slice()
This commit is contained in:
parent
f08f0f6f15
commit
a1a841afc8
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue