diff --git a/gstreamer/src/subclass/allocator.rs b/gstreamer/src/subclass/allocator.rs index c7671e26a..77d21ee79 100644 --- a/gstreamer/src/subclass/allocator.rs +++ b/gstreamer/src/subclass/allocator.rs @@ -37,10 +37,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), )) @@ -58,10 +55,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(), ) }