[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:
Firefly
2016-01-25 15:48:02 +08:00
committed by cjp
parent d1d5c1485e
commit 2b6e08d135
2 changed files with 2 additions and 2 deletions

View File

@ -48,4 +48,4 @@ LOCAL_MODULE := iep_func_test
LOCAL_MODULE_TAGS := optional tests
LOCAL_PRELINK_MODULE := false
include $(BUILD_EXECUTABLE)
#include $(BUILD_EXECUTABLE)

View File

@ -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();