mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-23 12:01:01 +00:00
Use from_glib_borrow() for more vfunc parameters
This commit is contained in:
parent
d1f90d0fea
commit
bf63a823cd
2 changed files with 3 additions and 3 deletions
|
@ -548,7 +548,7 @@ where
|
|||
let imp = element.get_impl();
|
||||
|
||||
panic_to_error!(&wrap, &element.panicked(), false, {
|
||||
imp.event(&wrap, &from_glib_none(event_ptr))
|
||||
imp.event(&wrap, &from_glib_borrow(event_ptr))
|
||||
}).to_glib()
|
||||
}
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ where
|
|||
let imp = bin.get_impl();
|
||||
|
||||
panic_to_error!(&wrap, &bin.panicked(), false, {
|
||||
imp.add_element(&wrap, &from_glib_none(element))
|
||||
imp.add_element(&wrap, &from_glib_borrow(element))
|
||||
}).to_glib()
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ where
|
|||
let imp = bin.get_impl();
|
||||
|
||||
panic_to_error!(&wrap, &bin.panicked(), false, {
|
||||
imp.remove_element(&wrap, &from_glib_none(element))
|
||||
imp.remove_element(&wrap, &from_glib_borrow(element))
|
||||
}).to_glib()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue