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
parent
6b53a87784
commit
53209485c0
|
@ -631,6 +631,7 @@
|
||||||
if(_outputBuffer) {
|
if(_outputBuffer) {
|
||||||
free(_outputBuffer);
|
free(_outputBuffer);
|
||||||
_outputBuffer = NULL;
|
_outputBuffer = NULL;
|
||||||
|
_currentOutputFrames = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
mad_synth_finish(&_synth);
|
mad_synth_finish(&_synth);
|
||||||
|
|
Loading…
Reference in New Issue