[vlc-commits] audiounit_ios: remove notification observer on stop

Thomas Guillem git at videolan.org
Thu Sep 7 12:06:07 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Sep  7 11:09:34 2017 +0200| [d656c983004f9f62424ea265061e9e78687b215d] | committer: Thomas Guillem

audiounit_ios: remove notification observer on stop

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d656c983004f9f62424ea265061e9e78687b215d
---

 modules/audio_output/audiounit_ios.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/audio_output/audiounit_ios.m b/modules/audio_output/audiounit_ios.m
index 9ef7e2a281..e87ffeee91 100644
--- a/modules/audio_output/audiounit_ios.m
+++ b/modules/audio_output/audiounit_ios.m
@@ -357,6 +357,8 @@ Stop(audio_output_t *p_aout)
     struct aout_sys_t   *p_sys = p_aout->sys;
     OSStatus err;
 
+    [[NSNotificationCenter defaultCenter] removeObserver:p_sys->aoutWrapper];
+
     err = AudioOutputUnitStop(p_sys->au_unit);
     if (err != noErr)
         ca_LogWarn("AudioOutputUnitStop failed");



More information about the vlc-commits mailing list