diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-10-12 18:03:06 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-10-12 18:03:06 +0300 |
commit | 4b97d569496c248cc456653b756bc44f560a523b (patch) | |
tree | c90ba6e7bb0b5d9b78c48ab45c5eb0702ce87d90 /gst-plugin-audiofx/src/audioecho.rs | |
parent | 393cd6236a86dbb32abaa12a56280f49cfa51ac2 (diff) |
Fix compilation after GstRc<T>::get_mut() API fixes in gstreamer-rs
Diffstat (limited to 'gst-plugin-audiofx/src/audioecho.rs')
-rw-r--r-- | gst-plugin-audiofx/src/audioecho.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-plugin-audiofx/src/audioecho.rs b/gst-plugin-audiofx/src/audioecho.rs index 1fd4dfa44..473705adf 100644 --- a/gst-plugin-audiofx/src/audioecho.rs +++ b/gst-plugin-audiofx/src/audioecho.rs @@ -232,7 +232,7 @@ impl ObjectImpl<RsBaseTransform> for AudioEcho { impl ElementImpl<RsBaseTransform> for AudioEcho {} impl BaseTransformImpl<RsBaseTransform> for AudioEcho { - fn transform_ip(&self, _element: &RsBaseTransform, buf: &gst::Buffer) -> gst::FlowReturn { + fn transform_ip(&self, _element: &RsBaseTransform, buf: &mut gst::BufferRef) -> gst::FlowReturn { let mut settings = *self.settings.lock().unwrap(); settings.delay = cmp::min(settings.max_delay, settings.delay); @@ -242,7 +242,7 @@ impl BaseTransformImpl<RsBaseTransform> for AudioEcho { Some(ref mut state) => state, }; - let mut map = match buf.get_mut().and_then(|b| b.map_writable()) { + let mut map = match buf.map_writable() { None => return gst::FlowReturn::Error, Some(map) => map, }; |