forked from mirrors/gstreamer-rs
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:
parent
439db15c20
commit
6b94083a07
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue