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

gitlab.freedesktop.org/gstreamer/gst-plugins-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>2023-07-11 10:09:35 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-07-11 10:09:35 +0300
commitbbd3d9ffe04081f0ac8d44374dd123fe301dd310 (patch)
tree50bfe943d8aa56440feb95e12226bfb09fbbc763 /video
parentc2201480cfb31952017f2d69f10761b7e6ba0af1 (diff)
Remove unnecessary `mut` everywhere
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1273>
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/jsontovtt/imp.rs4
-rw-r--r--video/closedcaption/src/mcc_parse/imp.rs6
-rw-r--r--video/closedcaption/src/scc_parse/imp.rs6
-rw-r--r--video/closedcaption/src/tttocea608/imp.rs2
4 files changed, 9 insertions, 9 deletions
diff --git a/video/closedcaption/src/jsontovtt/imp.rs b/video/closedcaption/src/jsontovtt/imp.rs
index b74510ada..3f096574c 100644
--- a/video/closedcaption/src/jsontovtt/imp.rs
+++ b/video/closedcaption/src/jsontovtt/imp.rs
@@ -205,7 +205,7 @@ impl State {
/* Collect cues, fixing up their duration based on the next cue */
while let Some(lines) = self.pending.front() {
- if let Some(mut drained_line) = drained_lines.back_mut() {
+ if let Some(drained_line) = drained_lines.back_mut() {
drained_line.duration = lines.pts - drained_line.pts;
}
@@ -219,7 +219,7 @@ impl State {
}
/* cues that end a fragment must be clipped and cloned for the next fragment */
- if let Some(mut drained_line) = drained_lines.back_mut() {
+ if let Some(drained_line) = drained_lines.back_mut() {
/* Clip to either the requested PTS, or segment stop if specified */
let end_pts = if running_time.is_none() {
self.last_pts.unwrap()
diff --git a/video/closedcaption/src/mcc_parse/imp.rs b/video/closedcaption/src/mcc_parse/imp.rs
index 130d39389..11c57e72c 100644
--- a/video/closedcaption/src/mcc_parse/imp.rs
+++ b/video/closedcaption/src/mcc_parse/imp.rs
@@ -725,7 +725,7 @@ impl MccParse {
ref mut pull,
..
} = *state;
- let mut pull = pull.as_mut().unwrap();
+ let pull = pull.as_mut().unwrap();
let scan_tc_rate = tc_rate.is_none() && pull.duration.is_none();
let offset = pull.offset;
@@ -763,12 +763,12 @@ impl MccParse {
match self.scan_duration() {
Ok(Some(tc)) => {
let mut state = self.state.lock().unwrap();
- let mut pull = state.pull.as_mut().unwrap();
+ let pull = state.pull.as_mut().unwrap();
pull.duration = Some(tc.time_since_daily_jam());
}
Ok(None) => {
let mut state = self.state.lock().unwrap();
- let mut pull = state.pull.as_mut().unwrap();
+ let pull = state.pull.as_mut().unwrap();
pull.duration = Some(gst::ClockTime::ZERO);
}
Err(err) => {
diff --git a/video/closedcaption/src/scc_parse/imp.rs b/video/closedcaption/src/scc_parse/imp.rs
index 841fb8d69..6fda83b0b 100644
--- a/video/closedcaption/src/scc_parse/imp.rs
+++ b/video/closedcaption/src/scc_parse/imp.rs
@@ -625,7 +625,7 @@ impl SccParse {
ref mut pull,
..
} = *state;
- let mut pull = pull.as_mut().unwrap();
+ let pull = pull.as_mut().unwrap();
let scan_duration = framerate.is_none() && pull.duration.is_none();
let offset = pull.offset;
@@ -662,12 +662,12 @@ impl SccParse {
match self.scan_duration() {
Ok(Some(tc)) => {
let mut state = self.state.lock().unwrap();
- let mut pull = state.pull.as_mut().unwrap();
+ let pull = state.pull.as_mut().unwrap();
pull.duration = Some(tc.time_since_daily_jam());
}
Ok(None) => {
let mut state = self.state.lock().unwrap();
- let mut pull = state.pull.as_mut().unwrap();
+ let pull = state.pull.as_mut().unwrap();
pull.duration = Some(gst::ClockTime::ZERO);
}
Err(err) => {
diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs
index 75d1000c3..469f1d630 100644
--- a/video/closedcaption/src/tttocea608/imp.rs
+++ b/video/closedcaption/src/tttocea608/imp.rs
@@ -488,7 +488,7 @@ impl TtToCea608 {
fn generate(
&self,
- mut state: &mut State,
+ state: &mut State,
settings: &Settings,
pts: gst::ClockTime,
duration: gst::ClockTime,