MAD Decoder: Correctly prepare buffer after free

The current buffer size argument is used to determine if a buffer should
be allocated on the next run. Just in case something reuses the same
decoder instance.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-02-26 01:38:17 -08:00
parent 6b53a87784
commit 53209485c0
1 changed files with 1 additions and 0 deletions

View File

@ -631,6 +631,7 @@
if(_outputBuffer) {
free(_outputBuffer);
_outputBuffer = NULL;
_currentOutputFrames = 0;
}
mad_synth_finish(&_synth);