mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 21:05:15 +00:00
audioecho: Don't unnecessarily mark variable as mutable
This commit is contained in:
parent
443abffa73
commit
83388c8322
1 changed files with 2 additions and 2 deletions
|
@ -253,11 +253,11 @@ impl BaseTransformImpl<RsBaseTransform> for AudioEcho {
|
|||
|
||||
match state.info.format() {
|
||||
gst_audio::AUDIO_FORMAT_F64 => {
|
||||
let mut data = map.as_mut_slice().as_mut_slice_of::<f64>().unwrap();
|
||||
let data = map.as_mut_slice().as_mut_slice_of::<f64>().unwrap();
|
||||
Self::process(data, state, &settings);
|
||||
}
|
||||
gst_audio::AUDIO_FORMAT_F32 => {
|
||||
let mut data = map.as_mut_slice().as_mut_slice_of::<f32>().unwrap();
|
||||
let data = map.as_mut_slice().as_mut_slice_of::<f32>().unwrap();
|
||||
Self::process(data, state, &settings);
|
||||
}
|
||||
_ => return gst::FlowReturn::NotNegotiated,
|
||||
|
|
Loading…
Reference in a new issue