diff options
Diffstat (limited to 'src/components/media_manager/src/audio/from_mic_recorder_adapter.cc')
-rw-r--r-- | src/components/media_manager/src/audio/from_mic_recorder_adapter.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/media_manager/src/audio/from_mic_recorder_adapter.cc b/src/components/media_manager/src/audio/from_mic_recorder_adapter.cc index 2575643422..326bc33719 100644 --- a/src/components/media_manager/src/audio/from_mic_recorder_adapter.cc +++ b/src/components/media_manager/src/audio/from_mic_recorder_adapter.cc @@ -53,8 +53,8 @@ FromMicRecorderAdapter::FromMicRecorderAdapter() FromMicRecorderAdapter::~FromMicRecorderAdapter() { LOG4CXX_AUTO_TRACE(logger_); if (recorder_thread_) { - recorder_thread_->join(); - delete recorder_thread_->delegate(); + recorder_thread_->Stop(threads::Thread::kThreadSoftStop); + delete recorder_thread_->GetDelegate(); threads::DeleteThread(recorder_thread_); } } @@ -79,7 +79,7 @@ void FromMicRecorderAdapter::StartActivity(int32_t application_key) { } if (NULL != recorder_thread_) { - recorder_thread_->start(); + recorder_thread_->Start(); current_application_ = application_key; } } @@ -94,8 +94,8 @@ void FromMicRecorderAdapter::StopActivity(int32_t application_key) { } if (recorder_thread_) { - recorder_thread_->join(); - delete recorder_thread_->delegate(); + recorder_thread_->Stop(threads::Thread::kThreadSoftStop); + delete recorder_thread_->GetDelegate(); threads::DeleteThread(recorder_thread_); recorder_thread_ = NULL; } |