mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
Fix new 1.52 clippy warnings
This commit is contained in:
parent
23bcfb8b1c
commit
f4a3881dcf
1 changed files with 2 additions and 8 deletions
|
@ -138,14 +138,8 @@ impl Dav1dDec {
|
|||
frame: &gst_video::VideoCodecFrame,
|
||||
) -> Result<Vec<(dav1d::Picture, gst_video::VideoFormat)>, gst::FlowError> {
|
||||
let mut decoder = self.decoder.lock().unwrap();
|
||||
let timestamp = match frame.dts().0 {
|
||||
Some(ts) => Some(ts as i64),
|
||||
None => None,
|
||||
};
|
||||
let duration = match frame.duration().0 {
|
||||
Some(d) => Some(d as i64),
|
||||
None => None,
|
||||
};
|
||||
let timestamp = frame.dts().0.map(|ts| ts as i64);
|
||||
let duration = frame.duration().0.map(|d| d as i64);
|
||||
|
||||
let frame_number = Some(frame.system_frame_number() as i64);
|
||||
let input_data = input_buffer
|
||||
|
|
Loading…
Reference in a new issue