diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2019-12-18 08:50:10 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2019-12-18 09:17:42 +0300 |
commit | ccfb8246be63fac8316d99e8c79da3d1d3195be9 (patch) | |
tree | 80218b21353c32a22eecf21a1f0bbe4056c2f5ad /gst-plugin-audiofx/src/audioecho.rs | |
parent | ef8adbf113908a00f1c8644fcf4c1cb8c2a24093 (diff) |
Fix compilation after gstreamer-rs!383
Diffstat (limited to 'gst-plugin-audiofx/src/audioecho.rs')
-rw-r--r-- | gst-plugin-audiofx/src/audioecho.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-plugin-audiofx/src/audioecho.rs b/gst-plugin-audiofx/src/audioecho.rs index 488191e29..0fec15381 100644 --- a/gst-plugin-audiofx/src/audioecho.rs +++ b/gst-plugin-audiofx/src/audioecho.rs @@ -265,7 +265,7 @@ impl BaseTransformImpl for AudioEcho { let mut state_guard = self.state.lock().unwrap(); let state = state_guard.as_mut().ok_or(gst::FlowError::NotNegotiated)?; - let mut map = buf.map_writable().ok_or(gst::FlowError::Error)?; + let mut map = buf.map_writable().map_err(|_| gst::FlowError::Error)?; match state.info.format() { gst_audio::AUDIO_FORMAT_F64 => { |