mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
slimproto alignment with 4.3 (decode_restore) - release
This commit is contained in:
@@ -387,11 +387,14 @@ static void process_strm(u8_t *pkt, int len) {
|
|||||||
}
|
}
|
||||||
sendSTAT("STMc", 0);
|
sendSTAT("STMc", 0);
|
||||||
sentSTMu = sentSTMo = sentSTMl = false;
|
sentSTMu = sentSTMo = sentSTMl = false;
|
||||||
LOCK_O;
|
|
||||||
#if EMBEDDED
|
#if EMBEDDED
|
||||||
|
// not protected so that restore can call synchronously sink handlers
|
||||||
if (output.external) decode_restore(output.external);
|
if (output.external) decode_restore(output.external);
|
||||||
|
LOCK_O;
|
||||||
output.external = 0;
|
output.external = 0;
|
||||||
_buf_limit(outputbuf, 0);
|
_buf_limit(outputbuf, 0);
|
||||||
|
#else
|
||||||
|
LOCK_O;
|
||||||
#endif
|
#endif
|
||||||
output.threshold = strm->output_threshold;
|
output.threshold = strm->output_threshold;
|
||||||
output.next_replay_gain = unpackN(&strm->replay_gain);
|
output.next_replay_gain = unpackN(&strm->replay_gain);
|
||||||
|
|||||||
Reference in New Issue
Block a user