From 39a75632c84b093373d9c918fe176cc09467da90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 8 Mar 2021 12:50:03 +0200 Subject: [PATCH] threadshare: Update for glib subclass API cleanups --- generic/threadshare/src/runtime/pad.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/generic/threadshare/src/runtime/pad.rs b/generic/threadshare/src/runtime/pad.rs index 5032c63b..9cd18c66 100644 --- a/generic/threadshare/src/runtime/pad.rs +++ b/generic/threadshare/src/runtime/pad.rs @@ -881,7 +881,7 @@ impl PadSink { let element = element.clone().dynamic_cast::().unwrap(); let delayed_fut = async move { - let imp = ::from_instance( + let imp = ::from_instance( element.unsafe_cast_ref(), ); let this_ref = @@ -921,7 +921,7 @@ impl PadSink { let element = element.clone().dynamic_cast::().unwrap(); let delayed_fut = async move { - let imp = ::from_instance( + let imp = ::from_instance( element.unsafe_cast_ref(), ); let this_ref = @@ -966,9 +966,10 @@ impl PadSink { let element = element.clone().dynamic_cast::().unwrap(); let delayed_fut = async move { - let imp = ::from_instance( - element.unsafe_cast_ref(), - ); + let imp = + ::from_instance( + element.unsafe_cast_ref(), + ); let this_ref = this_weak.upgrade().ok_or(gst::FlowError::Flushing)?;