Fix deadlock unlock fault 61/207761/1
authorHyuntae Kim <ht1211.kim@samsung.com>
Wed, 12 Jun 2019 06:15:14 +0000 (15:15 +0900)
committerHyuntae Kim <ht1211.kim@samsung.com>
Wed, 12 Jun 2019 06:16:42 +0000 (15:16 +0900)
Remove unlock code in return
[Version] 0.0.7
[Profile] Common
[Issue Type] Bug fix

Change-Id: I90daaa0eb499dbdb0c3f63d88cc8b06b15312e34

src/tizen_camera_v4l2.c

index e4d3ef3..262b0d6 100644 (file)
@@ -1401,7 +1401,6 @@ int camera_release_preview_buffer(void *camera_handle, int buffer_index)
 
        if (buffer_index >= handle->preview_buffer_num) {
                LOGE("invalid buffer index %d", buffer_index);
-               g_mutex_unlock(&handle->preview_cb_lock);
                return CAMERA_ERROR_INVALID_PARAMETER;
        }