Fix some minor clippy warnings

This commit is contained in:
Sebastian Dröge 2020-01-02 13:06:53 +02:00
parent edcb10820d
commit 05b807aff0
3 changed files with 4 additions and 4 deletions

View file

@ -526,7 +526,7 @@ impl BaseSrcImpl for NdiAudioSrc {
);
gst::FlowError::NotNegotiated
})?;
state.info = Some(info.clone());
state.info = Some(info);
state.current_latency = buffer.get_duration();
drop(state);
gst_debug!(self.cat, obj: element, "Configuring for caps {}", caps);

View file

@ -565,7 +565,7 @@ impl BaseSrcImpl for NdiVideoSrc {
);
gst::FlowError::NotNegotiated
})?;
state.info = Some(info.clone());
state.info = Some(info);
state.current_latency = buffer.get_duration();
drop(state);
gst_debug!(self.cat, obj: element, "Configuring for caps {}", caps);

View file

@ -860,7 +860,7 @@ fn connect_ndi_async(
if let Some(video) = video.and_then(|v| v.upgrade()).map(Receiver) {
let mut video_recv = video.0.recv.lock().unwrap();
assert!(video_recv.is_none());
*video_recv = Some(recv.clone());
*video_recv = Some(recv);
video.0.recv_cond.notify_one();
}
@ -1264,7 +1264,7 @@ impl Receiver<VideoReceiver> {
};
let par = gst::Fraction::approximate_f32(video_frame.picture_aspect_ratio())
.unwrap_or(gst::Fraction::new(1, 1))
.unwrap_or_else(|| gst::Fraction::new(1, 1))
* gst::Fraction::new(video_frame.yres(), video_frame.xres());
#[cfg(feature = "interlaced-fields")]