gstreamer-base: Fix new clippy warning

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1563>
This commit is contained in:
Sebastian Dröge 2024-10-19 17:34:56 +03:00 committed by GStreamer Marge Bot
parent e5a796ed2e
commit d18fcda6ec

View file

@ -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::<gst::Buffer>::from_glib_full(outbuf));
}
err
})
})
.unwrap_or(Err(gst::FlowError::NotSupported))