mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-06 15:38:58 +00:00
Update to byte-slice-cast 0.2
This commit is contained in:
parent
25af5afb2b
commit
754373ba6c
3 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@ glib = { git = "https://github.com/gtk-rs/glib" }
|
||||||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs" }
|
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs" }
|
||||||
gstreamer-base = { 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" }
|
gstreamer-audio = { git = "https://github.com/sdroege/gstreamer-rs" }
|
||||||
byte-slice-cast = "0.1"
|
byte-slice-cast = "0.2"
|
||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|
|
@ -245,11 +245,11 @@ impl BaseTransformImpl<BaseTransform> for AudioEcho {
|
||||||
|
|
||||||
match state.info.format() {
|
match state.info.format() {
|
||||||
gst_audio::AUDIO_FORMAT_F64 => {
|
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);
|
Self::process(data, state, &settings);
|
||||||
}
|
}
|
||||||
gst_audio::AUDIO_FORMAT_F32 => {
|
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);
|
Self::process(data, state, &settings);
|
||||||
}
|
}
|
||||||
_ => return gst::FlowReturn::NotNegotiated,
|
_ => return gst::FlowReturn::NotNegotiated,
|
||||||
|
|
|
@ -13,7 +13,7 @@ gstreamer = { git = "https://github.com/sdroege/gstreamer-rs" }
|
||||||
gstreamer-base = { 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-video = { git = "https://github.com/sdroege/gstreamer-rs" }
|
||||||
gstreamer-audio = { 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"
|
num-traits = "0.2"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|
Loading…
Reference in a new issue