diff --git a/gst-plugin-audiofx/Cargo.toml b/gst-plugin-audiofx/Cargo.toml index ec3b9599b..d04416839 100644 --- a/gst-plugin-audiofx/Cargo.toml +++ b/gst-plugin-audiofx/Cargo.toml @@ -12,7 +12,7 @@ glib = { git = "https://github.com/gtk-rs/glib" } gstreamer = { git = "https://github.com/sdroege/gstreamer-rs" } gstreamer-base = { git = "https://github.com/sdroege/gstreamer-rs" } gstreamer-audio = { git = "https://github.com/sdroege/gstreamer-rs" } -byte-slice-cast = "0.1" +byte-slice-cast = "0.2" num-traits = "0.2" [lib] diff --git a/gst-plugin-audiofx/src/audioecho.rs b/gst-plugin-audiofx/src/audioecho.rs index 92bfc6ab1..8e96135d5 100644 --- a/gst-plugin-audiofx/src/audioecho.rs +++ b/gst-plugin-audiofx/src/audioecho.rs @@ -245,11 +245,11 @@ impl BaseTransformImpl for AudioEcho { match state.info.format() { gst_audio::AUDIO_FORMAT_F64 => { - let data = map.as_mut_slice().as_mut_slice_of::().unwrap(); + let data = map.as_mut_slice_of::().unwrap(); Self::process(data, state, &settings); } gst_audio::AUDIO_FORMAT_F32 => { - let data = map.as_mut_slice().as_mut_slice_of::().unwrap(); + let data = map.as_mut_slice_of::().unwrap(); Self::process(data, state, &settings); } _ => return gst::FlowReturn::NotNegotiated, diff --git a/gst-plugin-tutorial/Cargo.toml b/gst-plugin-tutorial/Cargo.toml index 5c6c4e843..ac30022d3 100644 --- a/gst-plugin-tutorial/Cargo.toml +++ b/gst-plugin-tutorial/Cargo.toml @@ -13,7 +13,7 @@ gstreamer = { git = "https://github.com/sdroege/gstreamer-rs" } gstreamer-base = { git = "https://github.com/sdroege/gstreamer-rs" } gstreamer-video = { git = "https://github.com/sdroege/gstreamer-rs" } gstreamer-audio = { git = "https://github.com/sdroege/gstreamer-rs" } -byte-slice-cast = "0.1" +byte-slice-cast = "0.2" num-traits = "0.2" [lib]