summaryrefslogtreecommitdiff
path: root/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc')
-rw-r--r--src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc b/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc
index d2634214fa..310fca7aa3 100644
--- a/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc
+++ b/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc
@@ -111,7 +111,7 @@ void FromMicToFileRecorderThread::deinitArgs() {
SDL_LOG_AUTO_TRACE();
if (argv_) {
- for (int32_t i = 0; i < argc_; i++) {
+ for (int32_t i = 0; i < argc_; ++i) {
delete[] argv_[i];
}
delete[] argv_;
@@ -164,7 +164,7 @@ void FromMicToFileRecorderThread::threadMain() {
// g_option_context_parse() modifies params, so keep argc_ and argv_
int32_t argc = argc_;
gchar** argv = new gchar*[argc];
- for (int32_t i = 0; i < argc; i++) {
+ for (int32_t i = 0; i < argc; ++i) {
argv[i] = argv_[i];
}
@@ -366,7 +366,7 @@ void FromMicToFileRecorderThread::exitThreadMain() {
if (sleepThread_) {
SDL_LOG_DEBUG("Stop sleep thread\n");
- sleepThread_->stop();
+ sleepThread_->Stop(threads::Thread::kThreadStopDelegate);
}
SDL_LOG_TRACE("Set should be stopped flag\n");