diff --git a/gstreamer/src/buffer.rs b/gstreamer/src/buffer.rs index 82cc4e9e6..1d33f48cd 100644 --- a/gstreamer/src/buffer.rs +++ b/gstreamer/src/buffer.rs @@ -758,13 +758,6 @@ impl BufferRef { ) -> Result, glib::BoolError> { BufferRefCursor::new_writable(self) } - - // rustdoc-stripper-ignore-next - /// Returns `true` if the two [`BufferRef`] point to the same buffer. - pub fn ptr_eq(this: &BufferRef, other: &BufferRef) -> bool { - skip_assert_initialized!(); - this.as_ptr() == other.as_ptr() - } } macro_rules! define_meta_iter( diff --git a/gstreamer/src/miniobject.rs b/gstreamer/src/miniobject.rs index 82a9ecd2d..607b779f9 100644 --- a/gstreamer/src/miniobject.rs +++ b/gstreamer/src/miniobject.rs @@ -431,6 +431,11 @@ macro_rules! mini_object_wrapper ( &mut *(self.as_mut_ptr() as *mut $crate::miniobject::MiniObjectRef) } } + + pub fn ptr_eq(this: &$ref_name, other: &$ref_name) -> bool { + skip_assert_initialized!(); + this.as_ptr() == other.as_ptr() + } } impl $crate::glib::translate::GlibPtrDefault for $ref_name {