Update to byte-slice-cast 0.2

This commit is contained in:
Sebastian Dröge 2018-06-01 12:02:18 +03:00
parent 25af5afb2b
commit 754373ba6c
3 changed files with 4 additions and 4 deletions

View file

@ -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]

View file

@ -245,11 +245,11 @@ impl BaseTransformImpl<BaseTransform> for AudioEcho {
match state.info.format() {
gst_audio::AUDIO_FORMAT_F64 => {
let data = map.as_mut_slice().as_mut_slice_of::<f64>().unwrap();
let data = map.as_mut_slice_of::<f64>().unwrap();
Self::process(data, state, &settings);
}
gst_audio::AUDIO_FORMAT_F32 => {
let data = map.as_mut_slice().as_mut_slice_of::<f32>().unwrap();
let data = map.as_mut_slice_of::<f32>().unwrap();
Self::process(data, state, &settings);
}
_ => return gst::FlowReturn::NotNegotiated,

View file

@ -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]