Fix coverity issue - Data race condition
[platform/core/multimedia/libmm-camcorder.git] / src / mm_camcorder_sound.c
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");