Update for glib-rs API changes

This commit is contained in:
Sebastian Dröge 2018-11-28 21:55:21 +02:00
parent ab626adc4a
commit 3febc42628

View file

@ -144,7 +144,7 @@ where
f: F,
) -> R {
unsafe {
assert!(element.get_type().is_a(&T::static_type()));
assert!(element.get_type().is_a(&T::get_type()));
let ptr: *mut ffi::GstElement = element.to_glib_none().0;
let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl();
@ -164,7 +164,7 @@ where
.unwrap()
.downcast_ref::<::Element>()
.unwrap();
assert!(wrap.get_type().is_a(&T::static_type()));
assert!(wrap.get_type().is_a(&T::get_type()));
let ptr: *mut ffi::GstElement = wrap.to_glib_none().0;
let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl();