[hardware/rockchip/libiep] IEP: initialize rga_fd when contrast mode not enable
Before this revision, when contrast mode not enable, rga_fd will be a random value, a invalide fd will be close when iep api destruction. Signed-off-by: Firefly <service@t-firefly.com>
This commit is contained in:
@ -48,4 +48,4 @@ LOCAL_MODULE := iep_func_test
|
||||
LOCAL_MODULE_TAGS := optional tests
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
#include $(BUILD_EXECUTABLE)
|
||||
|
||||
@ -161,7 +161,7 @@ static void get_env_value()
|
||||
g_log_level = atoi(prop_value);
|
||||
}
|
||||
|
||||
iep_api::iep_api()
|
||||
iep_api::iep_api() : rga_fd(-1)
|
||||
{
|
||||
//pthread_once(&g_get_env_value_once, get_env_value);
|
||||
get_env_value();
|
||||
|
||||
Reference in New Issue
Block a user