mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-10-31 22:58:51 +00:00
Fix some clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1035>
This commit is contained in:
parent
781fd1df9a
commit
d44a1a4245
2 changed files with 2 additions and 7 deletions
|
@ -338,13 +338,8 @@ impl CustomSource {
|
|||
gst::debug!(CAT, imp: self, "Source signalled no-more-pads");
|
||||
|
||||
let state = self.state.lock().unwrap();
|
||||
let streams = state
|
||||
.pads
|
||||
.iter()
|
||||
.map(|p| p.stream.clone())
|
||||
.collect::<Vec<_>>();
|
||||
let collection = gst::StreamCollection::builder(None)
|
||||
.streams(streams)
|
||||
.streams(state.pads.iter().map(|p| p.stream.clone()))
|
||||
.build();
|
||||
drop(state);
|
||||
|
||||
|
|
|
@ -855,7 +855,7 @@ impl BinImpl for UriPlaylistBin {
|
|||
let state = state_guard.as_mut().unwrap();
|
||||
|
||||
let src = error.src().unwrap();
|
||||
let item = state.find_item_from_src(&src);
|
||||
let item = state.find_item_from_src(src);
|
||||
|
||||
drop(state_guard);
|
||||
|
||||
|
|
Loading…
Reference in a new issue