[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>lastfm
parent
db181bde4d
commit
f516658a5e
|
@ -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