Rubberband: Fix end of track reset for threading

This end of track restart notification may come from a different thread
than the processing thread. Wait on the thread to complete.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-06-07 05:40:18 -07:00
parent 9055bc45f3
commit 0d06590c23

View file

@ -363,6 +363,7 @@ static void * kDSPRubberbandNodeContext = &kDSPRubberbandNodeContext;
- (void)setEndOfStream:(BOOL)e {
if(endOfStream && !e) {
while(processEntered);
[self fullShutdown];
}
[super setEndOfStream:e];