From 0d411d72959ab47e1d33b24779f4f93a3a288a12 Mon Sep 17 00:00:00 2001 From: Philippe G Date: Fri, 24 Dec 2021 13:07:38 -0800 Subject: [PATCH] slimproto alignment with 4.3 (decode_restore) - release --- components/squeezelite/slimproto.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/squeezelite/slimproto.c b/components/squeezelite/slimproto.c index 2fb65d27..5b3f6fde 100644 --- a/components/squeezelite/slimproto.c +++ b/components/squeezelite/slimproto.c @@ -387,11 +387,14 @@ static void process_strm(u8_t *pkt, int len) { } sendSTAT("STMc", 0); sentSTMu = sentSTMo = sentSTMl = false; - LOCK_O; #if EMBEDDED + // not protected so that restore can call synchronously sink handlers if (output.external) decode_restore(output.external); + LOCK_O; output.external = 0; _buf_limit(outputbuf, 0); +#else + LOCK_O; #endif output.threshold = strm->output_threshold; output.next_replay_gain = unpackN(&strm->replay_gain);