X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fframe.rs;h=4aaf27251b2be497e43bcbada9f996648b07ade4;hb=b7b96b4cabbde72f05d0464299bf7fdf74d6480c;hp=628efb6eb75aff1606a5ea7097a85181b7831148;hpb=4c6c19cb19126ed8c95f1077472e81991de8bb1c;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)) } }