[vlc-commits] audiounit: stop audio-unit before deactivating the audio session ( closes #15984)
Felix Paul Kühne
git at videolan.org
Sun Nov 29 17:51:11 CET 2015
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Nov 29 17:50:57 2015 +0100| [bc0997a56ac12820c9c85e9f7cd3441d9a923577] | committer: Felix Paul Kühne
audiounit: stop audio-unit before deactivating the audio session (closes #15984)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc0997a56ac12820c9c85e9f7cd3441d9a923577
---
modules/audio_output/audiounit_ios.m | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/audio_output/audiounit_ios.m b/modules/audio_output/audiounit_ios.m
index 2da2761..cee8eab 100644
--- a/modules/audio_output/audiounit_ios.m
+++ b/modules/audio_output/audiounit_ios.m
@@ -288,8 +288,6 @@ static void Stop(audio_output_t *p_aout)
struct aout_sys_t *p_sys = p_aout->sys;
OSStatus status;
- [[AVAudioSession sharedInstance] setActive:NO error:nil];
-
if (p_sys->au_unit) {
status = AudioOutputUnitStop(p_sys->au_unit);
if (status != noErr)
@@ -305,6 +303,8 @@ static void Stop(audio_output_t *p_aout)
}
p_sys->i_bytes_per_sample = 0;
+ [[AVAudioSession sharedInstance] setActive:NO withOptions:AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation error:nil];
+
/* clean-up circular buffer */
TPCircularBufferCleanup(&p_sys->circular_buffer);
}
More information about the vlc-commits
mailing list