From b54746cf62f439cf5a471dabaaa6c648caf7a87e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 21 Jan 2023 20:58:06 +0200 Subject: [PATCH] gstreamer: Use `obj()` instead of `instance()` in the remaining places Part-of: --- gstreamer/src/subclass/allocator.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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(), ) }