diff --git a/gstreamer/src/allocation_params.rs b/gstreamer/src/allocation_params.rs index df11c0f69..fe6730769 100644 --- a/gstreamer/src/allocation_params.rs +++ b/gstreamer/src/allocation_params.rs @@ -98,6 +98,17 @@ impl From for AllocationParams { } } +impl PartialEq for AllocationParams { + fn eq(&self, other: &Self) -> bool { + self.flags() == other.flags() + && self.align() == other.align() + && self.prefix() == other.prefix() + && self.padding() == other.padding() + } +} + +impl Eq for AllocationParams {} + #[doc(hidden)] impl<'a> ToGlibPtr<'a, *const ffi::GstAllocationParams> for AllocationParams { type Storage = PhantomData<&'a Self>;