mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
gstreamer: Use obj()
instead of instance()
in the remaining places
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1196>
This commit is contained in:
parent
257a049673
commit
38dd1f462b
1 changed files with 2 additions and 8 deletions
|
@ -39,10 +39,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),
|
||||
))
|
||||
|
@ -60,10 +57,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