diff --git a/gstreamer/src/meta.rs b/gstreamer/src/meta.rs index ce639b472..8f389bd2f 100644 --- a/gstreamer/src/meta.rs +++ b/gstreamer/src/meta.rs @@ -24,7 +24,7 @@ pub unsafe trait MetaAPI: Sized { fn get_meta_api() -> glib::Type; - unsafe fn from_ptr<'a>(buffer: &'a BufferRef, ptr: *const Self::GstType) -> MetaRef<'a, Self> { + unsafe fn from_ptr(buffer: &BufferRef, ptr: *const Self::GstType) -> MetaRef { assert!(!ptr.is_null()); let meta_api = Self::get_meta_api(); @@ -41,10 +41,10 @@ pub unsafe trait MetaAPI: Sized { } } - unsafe fn from_mut_ptr<'a, T>( - buffer: &'a mut BufferRef, + unsafe fn from_mut_ptr( + buffer: &mut BufferRef, ptr: *mut Self::GstType, - ) -> MetaRefMut<'a, Self, T> { + ) -> MetaRefMut { assert!(!ptr.is_null()); let meta_api = Self::get_meta_api();