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
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-11-01 11:27:48 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-11-01 11:27:48 +0300
commita8250abbf1eeff3ee277d93f166c3fd4983d7af3 (patch)
treec72fb58c6477081417a0685b9dac19ff48b8f6c9 /audio/audiofx
parent31d4ba2eaee98cb09eaf1b6c4ab29698018ff4e7 (diff)
Fix various new clippy warnings
Diffstat (limited to 'audio/audiofx')
-rw-r--r--audio/audiofx/examples/hrtfrender.rs8
-rw-r--r--audio/audiofx/src/audioloudnorm/imp.rs6
-rw-r--r--audio/audiofx/src/ebur128level/imp.rs12
3 files changed, 13 insertions, 13 deletions
diff --git a/audio/audiofx/examples/hrtfrender.rs b/audio/audiofx/examples/hrtfrender.rs
index 41ded273..61d70988 100644
--- a/audio/audiofx/examples/hrtfrender.rs
+++ b/audio/audiofx/examples/hrtfrender.rs
@@ -90,10 +90,10 @@ fn run() -> Result<(), Error> {
let new_z = -x * f32::sin(ROTATION) + z * f32::cos(ROTATION);
let objs = [gst::Structure::builder("application/spatial-object")
- .field("x", &new_x)
- .field("y", &y)
- .field("z", &new_z)
- .field("distance-gain", &gain)
+ .field("x", new_x)
+ .field("y", y)
+ .field("z", new_z)
+ .field("distance-gain", gain)
.build()];
hrtf.set_property("spatial-objects", gst::Array::new(objs));
diff --git a/audio/audiofx/src/audioloudnorm/imp.rs b/audio/audiofx/src/audioloudnorm/imp.rs
index 233982a2..915e5cb0 100644
--- a/audio/audiofx/src/audioloudnorm/imp.rs
+++ b/audio/audiofx/src/audioloudnorm/imp.rs
@@ -1560,7 +1560,7 @@ impl AudioLoudNorm {
}
// Need to reset the state now
- *state = State::new(&*self.settings.lock().unwrap(), state.info.clone());
+ *state = State::new(&self.settings.lock().unwrap(), state.info.clone());
}
state.adapter.push(buffer);
@@ -1602,7 +1602,7 @@ impl AudioLoudNorm {
Err(_) => return false,
};
}
- *state = Some(State::new(&*self.settings.lock().unwrap(), info));
+ *state = Some(State::new(&self.settings.lock().unwrap(), info));
drop(state);
if let Some(outbuf) = outbuf {
@@ -1623,7 +1623,7 @@ impl AudioLoudNorm {
Err(gst::FlowError::Eos) => None,
Err(_) => return false,
};
- *state = State::new(&*self.settings.lock().unwrap(), state.info.clone());
+ *state = State::new(&self.settings.lock().unwrap(), state.info.clone());
}
drop(state);
diff --git a/audio/audiofx/src/ebur128level/imp.rs b/audio/audiofx/src/ebur128level/imp.rs
index 2d9a98e1..f4f102e2 100644
--- a/audio/audiofx/src/ebur128level/imp.rs
+++ b/audio/audiofx/src/ebur128level/imp.rs
@@ -138,7 +138,7 @@ impl ObjectImpl for EbuR128Level {
.build()]
});
- &*SIGNALS
+ &SIGNALS
}
fn properties() -> &'static [glib::ParamSpec] {
@@ -482,7 +482,7 @@ impl BaseTransformImpl for EbuR128Level {
if state.ebur128.mode().contains(ebur128::Mode::M) {
match state.ebur128.loudness_momentary() {
- Ok(loudness) => s.set("momentary-loudness", &loudness),
+ Ok(loudness) => s.set("momentary-loudness", loudness),
Err(err) => gst::error!(
CAT,
imp: self,
@@ -494,7 +494,7 @@ impl BaseTransformImpl for EbuR128Level {
if state.ebur128.mode().contains(ebur128::Mode::S) {
match state.ebur128.loudness_shortterm() {
- Ok(loudness) => s.set("shortterm-loudness", &loudness),
+ Ok(loudness) => s.set("shortterm-loudness", loudness),
Err(err) => gst::error!(
CAT,
imp: self,
@@ -506,7 +506,7 @@ impl BaseTransformImpl for EbuR128Level {
if state.ebur128.mode().contains(ebur128::Mode::I) {
match state.ebur128.loudness_global() {
- Ok(loudness) => s.set("global-loudness", &loudness),
+ Ok(loudness) => s.set("global-loudness", loudness),
Err(err) => gst::error!(
CAT,
imp: self,
@@ -516,7 +516,7 @@ impl BaseTransformImpl for EbuR128Level {
}
match state.ebur128.relative_threshold() {
- Ok(threshold) => s.set("relative-threshold", &threshold),
+ Ok(threshold) => s.set("relative-threshold", threshold),
Err(err) => gst::error!(
CAT,
imp: self,
@@ -528,7 +528,7 @@ impl BaseTransformImpl for EbuR128Level {
if state.ebur128.mode().contains(ebur128::Mode::LRA) {
match state.ebur128.loudness_range() {
- Ok(range) => s.set("loudness-range", &range),
+ Ok(range) => s.set("loudness-range", range),
Err(err) => {
gst::error!(CAT, imp: self, "Failed to get loudness range: {}", err)
}