forked from mirrors/gstreamer-rs
Update for glib-rs API changes
This commit is contained in:
parent
ab626adc4a
commit
3febc42628
1 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ where
|
||||||
f: F,
|
f: F,
|
||||||
) -> R {
|
) -> R {
|
||||||
unsafe {
|
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 ptr: *mut ffi::GstElement = element.to_glib_none().0;
|
||||||
let instance = &*(ptr as *mut T::Instance);
|
let instance = &*(ptr as *mut T::Instance);
|
||||||
let imp = instance.get_impl();
|
let imp = instance.get_impl();
|
||||||
|
@ -164,7 +164,7 @@ where
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.downcast_ref::<::Element>()
|
.downcast_ref::<::Element>()
|
||||||
.unwrap();
|
.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 ptr: *mut ffi::GstElement = wrap.to_glib_none().0;
|
||||||
let instance = &*(ptr as *mut T::Instance);
|
let instance = &*(ptr as *mut T::Instance);
|
||||||
let imp = instance.get_impl();
|
let imp = instance.get_impl();
|
||||||
|
|
Loading…
Reference in a new issue