From abf77a70d219a0c2261d3e087b60765851fe0fe4 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 15 Feb 2025 01:33:06 -0800 Subject: [PATCH] Bug Fix: Do not process format change on stop We should not be processing a potential playback restart when the chain is being torn down for shutdown. Signed-off-by: Christopher Snowhill --- Audio/Chain/OutputNode.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Audio/Chain/OutputNode.m b/Audio/Chain/OutputNode.m index 651d993cf..b0227ef93 100644 --- a/Audio/Chain/OutputNode.m +++ b/Audio/Chain/OutputNode.m @@ -145,6 +145,8 @@ } - (void)setFormat:(AudioStreamBasicDescription *)f channelConfig:(uint32_t)channelConfig { + if(!shouldContinue) return; + format = *f; config = channelConfig; // Calculate a ratio and add to double(seconds) instead, as format may change