diff options
author | Jeongmo Yang <jm80.yang@samsung.com> | 2019-10-28 16:07:29 +0900 |
---|---|---|
committer | Jeongmo Yang <jm80.yang@samsung.com> | 2019-11-06 19:48:20 +0900 |
commit | 22d3598db7f74ef8c3bb8cadc37b7e4651728d2c (patch) | |
tree | 450982c50e87a7b840b530d0a3aed4d080166096 | |
parent | 2150e4c44a29bc0e146ea1036091c13e62c3bd57 (diff) | |
download | camera-hal-v4l2-tizen_5.5_tv.tar.gz camera-hal-v4l2-tizen_5.5_tv.tar.bz2 camera-hal-v4l2-tizen_5.5_tv.zip |
Do not call DQBUF after stop_preview is calledsubmit/tizen_5.5_wearable_hotfix/20201026.184301submit/tizen_5.5/20191106.104919accepted/tizen/5.5/unified/wearable/hotfix/20201027.123721accepted/tizen/5.5/unified/20191107.051413tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified
[Version] 0.0.10
[Profile] Common
[Issue Type] Update
Change-Id: I4ddc54a818b77cb6f4d4cec27eaa8bc03fe29e3c
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r-- | packaging/camera-hal-v4l2.spec | 2 | ||||
-rw-r--r-- | src/tizen_camera_v4l2.c | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/packaging/camera-hal-v4l2.spec b/packaging/camera-hal-v4l2.spec index cc1a87f..d77166d 100644 --- a/packaging/camera-hal-v4l2.spec +++ b/packaging/camera-hal-v4l2.spec @@ -1,6 +1,6 @@ Name: camera-hal-v4l2 Summary: Tizen Camera Hal for V4L2 -Version: 0.0.9 +Version: 0.0.10 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/tizen_camera_v4l2.c b/src/tizen_camera_v4l2.c index 5996772..6454cd6 100644 --- a/src/tizen_camera_v4l2.c +++ b/src/tizen_camera_v4l2.c @@ -609,14 +609,18 @@ static void *_camera_preview_handler_func(gpointer data) break; } + g_mutex_lock(&handle->preview_cb_lock); + + if (handle->preview_cb_run == FALSE) { + LOGW("stop preview handler thread"); + break; + } + if (_camera_v4l2_dqbuf(handle->device_fd, handle->v4l2_type, V4L2_MEMORY_MMAP, &index) != CAMERA_ERROR_NONE) { LOGE("dqbuf failed"); - g_mutex_lock(&handle->preview_cb_lock); break; } - g_mutex_lock(&handle->preview_cb_lock); - handle->live_buffer_num++; LOGD("live buffer num %d", handle->live_buffer_num); |