mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-23 20:10:59 +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 {
|
||||
let element = parent
|
||||
.as_ref()
|
||||
.cloned()
|
||||
.unwrap()
|
||||
.downcast::<Element>()
|
||||
.downcast_ref::<Element>()
|
||||
.unwrap();
|
||||
let src = element.get_impl().downcast_ref::<ProxySrc>().unwrap();
|
||||
element.catch_panic(fallback, |element| f(src, element))
|
||||
|
|
Loading…
Reference in a new issue