From d078c3128aec4e24a4cae063cb7f2cb4e06ca60b Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Thu, 18 May 2017 19:05:34 +0900 Subject: [PATCH] Wait for sub resource release [Version] 0.10.121 [Profile] Common [Issue Type] Update [Dependency module] N/A [Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20170517.4] Change-Id: Ifffab7169ecf8b80e16b1b91bd8887dd8b7e6e26 Signed-off-by: Jeongmo Yang --- packaging/libmm-camcorder.spec | 2 +- src/mm_camcorder_videorec.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index 3cd3508..8d5db25 100644 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,6 +1,6 @@ Name: libmm-camcorder Summary: Camera and recorder library -Version: 0.10.120 +Version: 0.10.121 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_camcorder_videorec.c b/src/mm_camcorder_videorec.c index 995ec2a..b786e55 100644 --- a/src/mm_camcorder_videorec.c +++ b/src/mm_camcorder_videorec.c @@ -407,14 +407,13 @@ int _mmcamcorder_remove_encode_pipeline(MMHandleType handle) ret = _mmcamcorder_resource_manager_release(resource_manager); _mmcam_dbg_warn("release resource 0x%x", ret); -#ifdef _MMCAMCORDER_MURPHY_WAIT_TO_RELEASE_SUB_RESOURCE + if (resource_manager->acquire_remain < resource_manager->acquire_count) { /* wait for resource release */ gint64 end_time = g_get_monotonic_time() + (__MMCAMCORDER_RESOURCE_WAIT_TIME * G_TIME_SPAN_SECOND); _mmcam_dbg_log("resource is not released all. wait for signal..."); _MMCAMCORDER_RESOURCE_WAIT_UNTIL(hcamcorder, end_time); } -#endif /* _MMCAMCORDER_MURPHY_WAIT_TO_RELEASE_SUB_RESOURCE */ } _MMCAMCORDER_UNLOCK_RESOURCE(hcamcorder); -- 2.7.4