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:
parent
9055bc45f3
commit
0d06590c23
1 changed files with 1 additions and 0 deletions
|
@ -363,6 +363,7 @@ static void * kDSPRubberbandNodeContext = &kDSPRubberbandNodeContext;
|
||||||
|
|
||||||
- (void)setEndOfStream:(BOOL)e {
|
- (void)setEndOfStream:(BOOL)e {
|
||||||
if(endOfStream && !e) {
|
if(endOfStream && !e) {
|
||||||
|
while(processEntered);
|
||||||
[self fullShutdown];
|
[self fullShutdown];
|
||||||
}
|
}
|
||||||
[super setEndOfStream:e];
|
[super setEndOfStream:e];
|
||||||
|
|
Loading…
Reference in a new issue