From 3750211e6d36efa9641947541f365f69ec29804c Mon Sep 17 00:00:00 2001 From: ilyak Date: Wed, 17 Feb 2021 15:12:21 +0300 Subject: [PATCH] fix iOS NSNotificationCenter removeObserver name which leads to NC deadlock for another operations --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 643256f6..93e9c0f3 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -25653,7 +25653,7 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice) -(void)remove_handler { - [[NSNotificationCenter defaultCenter] removeObserver:self name:@"AVAudioSessionRouteChangeNotification" object:nil]; + [[NSNotificationCenter defaultCenter] removeObserver:self name:AVAudioSessionRouteChangeNotification object:nil]; } -(void)handle_route_change:(NSNotification*)pNotification