mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-27 14:01:04 +00:00
threadshare: Use downcast_ref() instead of downcast()
This commit is contained in:
parent
987f78de42
commit
ec3e0875a1
1 changed files with 1 additions and 2 deletions
|
@ -839,9 +839,8 @@ impl ProxySrc {
|
||||||
) -> T {
|
) -> T {
|
||||||
let element = parent
|
let element = parent
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.cloned()
|
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.downcast::<Element>()
|
.downcast_ref::<Element>()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let src = element.get_impl().downcast_ref::<ProxySrc>().unwrap();
|
let src = element.get_impl().downcast_ref::<ProxySrc>().unwrap();
|
||||||
element.catch_panic(fallback, |element| f(src, element))
|
element.catch_panic(fallback, |element| f(src, element))
|
||||||
|
|
Loading…
Reference in a new issue