mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +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))
|
PrepareOutputBufferSuccess::Buffer(from_glib_full(outbuf))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.map_err(|err| {
|
.inspect_err(|_err| {
|
||||||
if outbuf != buf as *mut _ {
|
if outbuf != buf as *mut _ {
|
||||||
drop(Option::<gst::Buffer>::from_glib_full(outbuf));
|
drop(Option::<gst::Buffer>::from_glib_full(outbuf));
|
||||||
}
|
}
|
||||||
|
|
||||||
err
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.unwrap_or(Err(gst::FlowError::NotSupported))
|
.unwrap_or(Err(gst::FlowError::NotSupported))
|
||||||
|
|
Loading…
Reference in a new issue