mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
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,
|
||||
) -> 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();
|
||||
|
|
Loading…
Reference in a new issue