summaryrefslogtreecommitdiff
path: root/src/components/media_manager/src/video/video_stream_to_file_adapter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/media_manager/src/video/video_stream_to_file_adapter.cc')
-rw-r--r--src/components/media_manager/src/video/video_stream_to_file_adapter.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/media_manager/src/video/video_stream_to_file_adapter.cc b/src/components/media_manager/src/video/video_stream_to_file_adapter.cc
index d907211d16..dd5738b2a2 100644
--- a/src/components/media_manager/src/video/video_stream_to_file_adapter.cc
+++ b/src/components/media_manager/src/video/video_stream_to_file_adapter.cc
@@ -51,16 +51,16 @@ VideoStreamToFileAdapter::~VideoStreamToFileAdapter() {
if ((0 != current_application_) && (is_ready_)) {
StopActivity(current_application_);
}
- thread_->join();
- delete thread_->delegate();
+ thread_->Stop(threads::Thread::kThreadSoftStop);
+ delete thread_->GetDelegate();
threads::DeleteThread(thread_);
}
void VideoStreamToFileAdapter::Init() {
- if (thread_->is_running()) {
+ if (thread_->IsRunning()) {
LOG4CXX_DEBUG(logger, "Start sending thread");
const size_t kStackSize = 16384;
- thread_->start(threads::ThreadOptions(kStackSize));
+ thread_->Start(threads::ThreadOptions(kStackSize));
} else {
LOG4CXX_WARN(logger, "thread is already running");
}