diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-05-05 10:34:02 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-05-05 10:34:02 +0300 |
commit | 9349b86b27fefe8e3afdbfc155f52d40be6f899d (patch) | |
tree | 2eef7206c88d4cb08748384c4841b582d20e69bf /utils | |
parent | 3d24f1da223b65031c4bba8d36beee518ec3878f (diff) |
fallbackswitch: Fix compilation after gstreamer API changes
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fallbackswitch/src/base/subclass/aggregator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/fallbackswitch/src/base/subclass/aggregator.rs b/utils/fallbackswitch/src/base/subclass/aggregator.rs index bf8b522a2..8196b81d2 100644 --- a/utils/fallbackswitch/src/base/subclass/aggregator.rs +++ b/utils/fallbackswitch/src/base/subclass/aggregator.rs @@ -549,12 +549,12 @@ impl<T: AggregatorImpl> AggregatorImplExt for T { .expect("Missing parent function `update_src_caps`"); let mut out_caps = ptr::null_mut(); - gst::FlowReturn::from_glib(f( + gst::FlowSuccess::try_from_glib(f( aggregator.unsafe_cast_ref::<Aggregator>().to_glib_none().0, caps.as_mut_ptr(), &mut out_caps, )) - .into_result_value(|| from_glib_full(out_caps)) + .map(|_| from_glib_full(out_caps)) } } |