mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 11:31:06 +00:00
gstreamer: Use obj()
instead of instance()
in the remaining places
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1202>
This commit is contained in:
parent
7ca1834cd6
commit
b54746cf62
1 changed files with 2 additions and 8 deletions
|
@ -37,10 +37,7 @@ impl<T: AllocatorImpl> AllocatorImplExt for T {
|
|||
|
||||
if let Some(f) = (*parent_class).alloc {
|
||||
from_glib_full::<*mut ffi::GstMemory, Option<_>>(f(
|
||||
self.instance()
|
||||
.unsafe_cast_ref::<Allocator>()
|
||||
.to_glib_none()
|
||||
.0,
|
||||
self.obj().unsafe_cast_ref::<Allocator>().to_glib_none().0,
|
||||
size,
|
||||
mut_override(params.to_glib_none().0),
|
||||
))
|
||||
|
@ -58,10 +55,7 @@ impl<T: AllocatorImpl> AllocatorImplExt for T {
|
|||
|
||||
if let Some(f) = (*parent_class).free {
|
||||
f(
|
||||
self.instance()
|
||||
.unsafe_cast_ref::<Allocator>()
|
||||
.to_glib_none()
|
||||
.0,
|
||||
self.obj().unsafe_cast_ref::<Allocator>().to_glib_none().0,
|
||||
memory.into_glib_ptr(),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue