APPLINK-6536 Core crash occurs after PerformAudioPassThru and then EndAudioPassThru
authorAlexander Kutsan <AKutsan@luxoft.com>
Wed, 2 Apr 2014 13:57:02 +0000 (16:57 +0300)
committerJustin Dickow <jjdickow@gmail.com>
Tue, 8 Jul 2014 22:44:19 +0000 (18:44 -0400)
src/components/application_manager/src/application_manager_impl.cc
src/components/application_manager/src/commands/mobile/create_interaction_choice_set_request.cc

index 8a06dba..698c383 100644 (file)
@@ -614,6 +614,7 @@ void ApplicationManagerImpl::SendAudioPassThroughNotification(
 
 void ApplicationManagerImpl::StopAudioPassThru(int32_t application_key) {
   LOG4CXX_TRACE_ENTER(logger_);
+  sync_primitives::AutoLock lock(audio_pass_thru_lock_);
   if (NULL != media_manager_) {
     media_manager_->StopMicrophoneRecording(application_key);
   }
index 7074826..c9f6093 100644 (file)
@@ -171,8 +171,6 @@ mobile_apis::Result::eType CreateInteractionChoiceSetRequest::CheckChoiceSet(
         (*cur_set)[strings::choice_set].asArray();
       smart_objects::SmartArray::const_iterator cur_choise_it;
 
-
-
       for (cur_choise_it = choices->begin(); cur_choise_it != choices->end();
            ++cur_choise_it) {
         //vr_commands