X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fframe.rs;h=4aaf27251b2be497e43bcbada9f996648b07ade4;hb=1a151e53b591a45fb7f009e480d7abb5e03f0cfe;hp=628efb6eb75aff1606a5ea7097a85181b7831148;hpb=a1f26d1be2a62dfe4db26e9a5faaf9199f6b0325;p=nihav.git diff --git a/src/frame.rs b/src/frame.rs index 628efb6..4aaf272 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -374,7 +374,7 @@ pub fn alloc_audio_buffer(ainfo: NAAudioInfo, nsamples: usize, chmap: NAChannelM let mut data: Vec = Vec::with_capacity(length); data.resize(length, 0); let buf: NAAudioBuffer = NAAudioBuffer { data: Rc::new(RefCell::new(data)), info: ainfo, offs: offs, chmap: chmap, len: nsamples }; - Ok(NABufferType::AudioPacked(buf)) + Ok(NABufferType::AudioPacked(buf)) } }