diff --git a/gstreamer/src/subclass/allocator.rs b/gstreamer/src/subclass/allocator.rs index 361160624..5a1651061 100644 --- a/gstreamer/src/subclass/allocator.rs +++ b/gstreamer/src/subclass/allocator.rs @@ -39,10 +39,7 @@ impl AllocatorImplExt for T { if let Some(f) = (*parent_class).alloc { from_glib_full::<*mut ffi::GstMemory, Option<_>>(f( - self.instance() - .unsafe_cast_ref::() - .to_glib_none() - .0, + self.obj().unsafe_cast_ref::().to_glib_none().0, size, mut_override(params.to_glib_none().0), )) @@ -60,10 +57,7 @@ impl AllocatorImplExt for T { if let Some(f) = (*parent_class).free { f( - self.instance() - .unsafe_cast_ref::() - .to_glib_none() - .0, + self.obj().unsafe_cast_ref::().to_glib_none().0, memory.into_glib_ptr(), ) }