[Equalizer] Prevent crash on stop
Wait for the equalizer to be shut down properly by the main thread before destroying it. Otherwise, the main thread could crash on stop, due to accessing the equalizer handle while it's being torn down in the output thread. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
db181bde4d
commit
f516658a5e
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@
|
|||
}
|
||||
|
||||
- (void)endEqualizer:(AudioUnit)eq {
|
||||
[self sendDelegateMethod:@selector(audioPlayer:removeEqualizer:) withVoid:eq waitUntilDone:NO];
|
||||
[self sendDelegateMethod:@selector(audioPlayer:removeEqualizer:) withVoid:eq waitUntilDone:YES];
|
||||
}
|
||||
|
||||
- (void)addChainToQueue:(BufferChain *)newChain {
|
||||
|
|
Loading…
Reference in a new issue