Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-12-13 12:43:16 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-12-13 12:43:16 +0300
commit3f904553ea1336fc73333ec680493c41250a03fe (patch)
treeea270ea2f9b5484fc729a4a174ea2a0261e89f9a /video
parent289e8a08c31610fbf62056f8a156eb647e9c3a2a (diff)
Fix various new clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1011>
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/caption_frame.rs2
-rw-r--r--video/closedcaption/src/cea608tott/imp.rs2
-rw-r--r--video/closedcaption/src/jsontovtt/imp.rs2
-rw-r--r--video/closedcaption/src/mcc_enc/imp.rs2
-rw-r--r--video/rav1e/src/rav1enc/imp.rs2
-rw-r--r--video/videofx/src/videocompare/imp.rs2
6 files changed, 6 insertions, 6 deletions
diff --git a/video/closedcaption/src/caption_frame.rs b/video/closedcaption/src/caption_frame.rs
index ef2f3d07..2366d8e2 100644
--- a/video/closedcaption/src/caption_frame.rs
+++ b/video/closedcaption/src/caption_frame.rs
@@ -57,7 +57,7 @@ impl CaptionFrame {
data.as_ptr() as *mut _,
i32::from(full),
);
- data.set_len(len as usize);
+ data.set_len(len);
String::from_utf8(data).map_err(|_| Error)
}
diff --git a/video/closedcaption/src/cea608tott/imp.rs b/video/closedcaption/src/cea608tott/imp.rs
index 0222b6c2..92bd01f8 100644
--- a/video/closedcaption/src/cea608tott/imp.rs
+++ b/video/closedcaption/src/cea608tott/imp.rs
@@ -184,7 +184,7 @@ impl Cea608ToTt {
m %= 60;
let ns = time % 1_000_000_000;
- (h as u64, m as u8, s as u8, (ns / 1_000_000) as u16)
+ (h, m as u8, s as u8, (ns / 1_000_000) as u16)
}
fn create_vtt_buffer(
diff --git a/video/closedcaption/src/jsontovtt/imp.rs b/video/closedcaption/src/jsontovtt/imp.rs
index 26d1ae3b..5e0fb44e 100644
--- a/video/closedcaption/src/jsontovtt/imp.rs
+++ b/video/closedcaption/src/jsontovtt/imp.rs
@@ -131,7 +131,7 @@ impl State {
m %= 60;
let ns = time % 1_000_000_000;
- (h as u64, m as u8, s as u8, (ns / 1_000_000) as u16)
+ (h, m as u8, s as u8, (ns / 1_000_000) as u16)
}
fn create_vtt_buffer(
diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs
index 9d476206..4524b1f0 100644
--- a/video/closedcaption/src/mcc_enc/imp.rs
+++ b/video/closedcaption/src/mcc_enc/imp.rs
@@ -103,7 +103,7 @@ impl MccEnc {
FixedOffset::east_opt(creation_date.utc_offset().as_seconds() as i32)
.and_then(|tz| {
tz.with_ymd_and_hms(
- creation_date.year() as i32,
+ creation_date.year(),
creation_date.month() as u32,
creation_date.day_of_month() as u32,
creation_date.hour() as u32,
diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs
index 21ceec00..7a4aa972 100644
--- a/video/rav1e/src/rav1enc/imp.rs
+++ b/video/rav1e/src/rav1enc/imp.rs
@@ -468,7 +468,7 @@ impl ObjectImpl for Rav1Enc {
}
"rdo-lookahead-frames" => {
let settings = self.settings.lock().unwrap();
- (settings.rdo_lookahead_frames as i32).to_value()
+ (settings.rdo_lookahead_frames).to_value()
}
"tune" => {
let settings = self.settings.lock().unwrap();
diff --git a/video/videofx/src/videocompare/imp.rs b/video/videofx/src/videocompare/imp.rs
index 9e176144..508d6f3b 100644
--- a/video/videofx/src/videocompare/imp.rs
+++ b/video/videofx/src/videocompare/imp.rs
@@ -355,7 +355,7 @@ impl VideoAggregatorImpl for VideoCompare {
let max_distance_threshold = {
let settings = self.settings.lock().unwrap();
- settings.max_distance_threshold as f64
+ settings.max_distance_threshold
};
if message