diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-10-18 19:26:29 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-10-18 19:26:52 +0300 |
commit | 24b7cfc841dfc82da85021dbd2be410de9a44adc (patch) | |
tree | 12b18445dedb7dba5bcdaac4330c6f105ed89ee2 /audio | |
parent | 03b03fe2ddc792f7860764bfbfb35a5129cba07a (diff) |
Update for GStreamer API changes
Diffstat (limited to 'audio')
-rw-r--r-- | audio/lewton/src/lewtondec/imp.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/audio/lewton/src/lewtondec/imp.rs b/audio/lewton/src/lewtondec/imp.rs index 6c76ddd55..f58d85539 100644 --- a/audio/lewton/src/lewtondec/imp.rs +++ b/audio/lewton/src/lewtondec/imp.rs @@ -405,15 +405,7 @@ impl LewtonDec { let outbuf = if let Some(ref reorder_map) = state.reorder_map { let mut outbuf = self .instance() - .allocate_output_buffer(sample_count as usize * audio_info.bpf() as usize) - .map_err(|_| { - gst::element_imp_error!( - self, - gst::StreamError::Decode, - ["Failed to allocate output buffer"] - ); - gst::FlowError::Error - })?; + .allocate_output_buffer(sample_count as usize * audio_info.bpf() as usize); { // And copy the decoded data into our output buffer while reordering the channels to the // GStreamer channel order |