mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-21 16:38:17 +00:00
Fix some minor clippy warnings
This commit is contained in:
parent
edcb10820d
commit
05b807aff0
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue