From 52d8adf7ce684b0fa4e3af85799e983d1d3ae34c Mon Sep 17 00:00:00 2001 From: Demon000 Date: Thu, 5 Oct 2017 06:55:29 +0300 Subject: CameraWrapper: close native handles Android camera framework expects camera HAL to release native handles in case of video buffer. Old camera HALs don't release native handles internally, causing video recording to freeze after ~30s. This workaround is the equivalent of https://review.lineageos.org/#/c/165102/ Change-Id: Ie9e9abdede3dccada9e5002725a157f4960643e9 --- camera-wrapper/Android.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camera-wrapper/Android.mk') diff --git a/camera-wrapper/Android.mk b/camera-wrapper/Android.mk index bf6dccf..f26719d 100644 --- a/camera-wrapper/Android.mk +++ b/camera-wrapper/Android.mk @@ -20,6 +20,7 @@ include $(CLEAR_VARS) LOCAL_C_INCLUDES := \ framework/native/include \ + frameworks/native/include/media/openmax \ system/media/camera/include LOCAL_SRC_FILES := \ @@ -33,6 +34,7 @@ LOCAL_SHARED_LIBRARIES := \ libhidltransport \ libsensor \ libutils \ + libcutils \ android.hidl.token@1.0-utils LOCAL_STATIC_LIBRARIES := \ -- cgit v1.2.3