mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-20 23:20:37 +00:00
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
|
@ -56,3 +56,12 @@ impl From<ffi::GstAllocationParams> for AllocationParams {
|
||||||
AllocationParams(params)
|
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