Fix coverity issue - Data race condition 11/303611/1 accepted/tizen_unified_riscv accepted/tizen/unified/20240105.165034 accepted/tizen/unified/riscv/20240108.035930
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 2 Jan 2024 11:16:21 +0000 (20:16 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 2 Jan 2024 11:16:21 +0000 (20:16 +0900)
[Version] 0.10.300
[Issue Type] Coverity

Change-Id: I642f23505e67b6b616a757561cdc5dc76a5c4d38
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_sound.c

index f1fd1be..b011dcc 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.299
+Version:    0.10.300
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 3d242e5..b67af9f 100644 (file)
@@ -218,12 +218,12 @@ void _mmcamcorder_sound_solo_play_wait(MMHandleType handle)
 
        info = hcamcorder->gdbus_info_solo_sound;
 
-       MMCAM_LOG_INFO("START - is_playing[%d]", info->is_playing);
-
        end_time = g_get_monotonic_time() + _MMCAMCORDER_SOLO_PLAY_WAIT_TIMEOUT;
 
        g_mutex_lock(&info->sync_mutex);
 
+       MMCAM_LOG_INFO("is_playing[%d]", info->is_playing);
+
        while (info->is_playing) {
                MMCAM_LOG_INFO("Wait for signal");