[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>swiftingly
parent
6f6b5d6986
commit
206a3e42e7
|
@ -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 New Issue