gstreamer/allocation_params: Implement to_glib_none

This is needed by the now-autogenerated implementation of
Allocator::alloc, and later on the GL bindings.
This commit is contained in:
Marijn Suijten 2021-01-10 14:27:24 +01:00
parent 439db15c20
commit 6b94083a07

View file

@ -56,3 +56,12 @@ impl From<ffi::GstAllocationParams> for AllocationParams {
AllocationParams(params)
}
}
#[doc(hidden)]
impl<'a> ToGlibPtr<'a, *const ffi::GstAllocationParams> for AllocationParams {
type Storage = &'a Self;
fn to_glib_none(&'a self) -> Stash<'a, *const ffi::GstAllocationParams, Self> {
Stash(&self.0, self)
}
}