From d18fcda6ec4b03334c87bb0c8f00a82302c23133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 19 Oct 2024 17:34:56 +0300 Subject: [PATCH] gstreamer-base: Fix new clippy warning Part-of: --- gstreamer-base/src/subclass/base_transform.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gstreamer-base/src/subclass/base_transform.rs b/gstreamer-base/src/subclass/base_transform.rs index 7d3ea8fb0..19b58aca6 100644 --- a/gstreamer-base/src/subclass/base_transform.rs +++ b/gstreamer-base/src/subclass/base_transform.rs @@ -465,12 +465,10 @@ pub trait BaseTransformImplExt: sealed::Sealed + ObjectSubclass { PrepareOutputBufferSuccess::Buffer(from_glib_full(outbuf)) } }) - .map_err(|err| { + .inspect_err(|_err| { if outbuf != buf as *mut _ { drop(Option::::from_glib_full(outbuf)); } - - err }) }) .unwrap_or(Err(gst::FlowError::NotSupported))