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))