diff options
author | Artem Nosach <ANosach@luxoft.com> | 2015-03-09 16:35:53 +0200 |
---|---|---|
committer | Artem Nosach <ANosach@luxoft.com> | 2015-04-23 15:31:15 +0300 |
commit | 988daf67a3fc2436878fd32ee7d6f2b48cda476c (patch) | |
tree | 7d0e0bf8f93eb4977a1d7ec5e79fa983279aca0a /src/components/media_manager | |
parent | e7350cdc1baef723e7ce54f4e020a2b9b724b257 (diff) | |
download | sdl_core-988daf67a3fc2436878fd32ee7d6f2b48cda476c.tar.gz |
Remove mic listener after using.
Diffstat (limited to 'src/components/media_manager')
-rw-r--r-- | src/components/media_manager/src/media_manager_impl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/media_manager/src/media_manager_impl.cc b/src/components/media_manager/src/media_manager_impl.cc index d36568c0b6..259c4f7d8f 100644 --- a/src/components/media_manager/src/media_manager_impl.cc +++ b/src/components/media_manager/src/media_manager_impl.cc @@ -219,6 +219,11 @@ void MediaManagerImpl::StopMicrophoneRecording(int32_t application_key) { if (from_mic_listener_) { from_mic_listener_->OnActivityEnded(application_key); } +#if defined(EXTENDED_MEDIA_MODE) + if (from_mic_recorder_) { + from_mic_recorder_->RemoveListener(from_mic_listener_); + } +#endif } void MediaManagerImpl::StartVideoStreaming(int32_t application_key) { |