From 9417f6b15fc833f8bbb65e3f614194ce69b1227c Mon Sep 17 00:00:00 2001 From: Mariusz Polasinski Date: Wed, 11 Feb 2015 14:55:06 +0100 Subject: [PATCH] [TVDisplayControl] Change key SYSTEM_INFO_KEY_3D_EFFECT_SUPPORTED into SYSTEM_INFO_KEY_3D_SUPPORT [Verification] Code complies without errors Methods are tested in node Change-Id: Ia42924ac43e58dfa2e2eb8d956af1a79e42779a6 Signed-off-by: Mariusz Polasinski --- src/tvdisplay/tvdisplay_instance.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tvdisplay/tvdisplay_instance.cc b/src/tvdisplay/tvdisplay_instance.cc index 8b8e4fee..7714e11c 100644 --- a/src/tvdisplay/tvdisplay_instance.cc +++ b/src/tvdisplay/tvdisplay_instance.cc @@ -45,9 +45,9 @@ namespace { bool is_3D_enabled() { LOGD("Enter"); - bool is_supported = true; - int ret = system_info_get_value_bool( - SYSTEM_INFO_KEY_3D_EFFECT_SUPPORTED, + int is_supported = -1; + int ret = system_info_get_value_int( + SYSTEM_INFO_KEY_3D_SUPPORT, &is_supported); if (SYSTEM_INFO_ERROR_NONE != ret) { std::string message = "'system_info' error while " @@ -55,7 +55,7 @@ namespace { LOGE("%s", message.c_str()); throw common::UnknownException(message); } - return is_supported; + return is_supported == 1; } } // namespace -- 2.34.1