mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 11:36:59 +03:00
and decoder ...
This commit is contained in:
@@ -352,6 +352,8 @@ static decode_state opus_decompress(void) {
|
||||
|
||||
static void opus_open(u8_t size, u8_t rate, u8_t chan, u8_t endianness) {
|
||||
if (u->decoder) OP(&gu, decoder_destroy, u->decoder);
|
||||
u->decoder = NULL;
|
||||
|
||||
if (!u->overbuf) u->overbuf = malloc(MAX_OPUS_FRAMES * BYTES_PER_FRAME);
|
||||
|
||||
u->status = OGG_SYNC;
|
||||
@@ -364,6 +366,7 @@ static void opus_open(u8_t size, u8_t rate, u8_t chan, u8_t endianness) {
|
||||
|
||||
static void opus_close(void) {
|
||||
if (u->decoder) OP(&gu, decoder_destroy, u->decoder);
|
||||
u->decoder = NULL;
|
||||
|
||||
free(u->overbuf);
|
||||
u->overbuf = NULL;
|
||||
|
||||
Reference in New Issue
Block a user