mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
fix vorbis as well
This commit is contained in:
@@ -247,13 +247,17 @@ void decode_close(void) {
|
||||
#endif
|
||||
}
|
||||
|
||||
void decode_flush(void) {
|
||||
void decode_flush(bool close) {
|
||||
LOG_INFO("decode flush");
|
||||
LOCK_D;
|
||||
decode.state = DECODE_STOPPED;
|
||||
IF_PROCESS(
|
||||
process_flush();
|
||||
);
|
||||
if (close && codec) {
|
||||
codec->close();
|
||||
codec = NULL;
|
||||
}
|
||||
UNLOCK_D;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user