From 6b94083a07f2deea4aa100485363f5b94c2dcf81 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Sun, 10 Jan 2021 14:27:24 +0100 Subject: [PATCH] gstreamer/allocation_params: Implement to_glib_none This is needed by the now-autogenerated implementation of Allocator::alloc, and later on the GL bindings. --- gstreamer/src/allocation_params.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gstreamer/src/allocation_params.rs b/gstreamer/src/allocation_params.rs index 596a92fd6..c8ef29520 100644 --- a/gstreamer/src/allocation_params.rs +++ b/gstreamer/src/allocation_params.rs @@ -56,3 +56,12 @@ impl From 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) + } +}