mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-21 17:11:04 +00:00
gstreamer-base: Fix new clippy warning
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1563>
This commit is contained in:
parent
e5a796ed2e
commit
d18fcda6ec
1 changed files with 1 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue