Use FMS(Feature Management System) key instead of system key 01/237301/3
authorchengyj1985 <yujie.cheng@samsung.com>
Mon, 29 Jun 2020 03:56:30 +0000 (11:56 +0800)
committerchengyj1985 <yujie.cheng@samsung.com>
Wed, 1 Jul 2020 02:35:28 +0000 (10:35 +0800)
Change-Id: If50ea2d693f18d799efd6c5c6400d91e8a6f441c

src/common/media-common-utils.c

index 8fd149f..a448e8a 100644 (file)
@@ -138,16 +138,15 @@ int ms_get_remain_space(double *free_space)
 #ifdef _USE_RECORDED_CONTENT
 bool ms_is_support_pvr(void)
 {
-
-       int nSupportPVR = 0;
-       if (system_info_get_value_int(SYSTEM_INFO_KEY_PVR_SUPPORTED, &nSupportPVR) != SYSTEM_INFO_ERROR_NONE) {
+       bool bSupportPVR = false;
+       if (system_info_get_custom_bool("com.samsung/featureconf/pvr.pvr_support", &bSupportPVR) != SYSTEM_INFO_ERROR_NONE) {
                MS_DBG_ERR("Get PVR Support failed");
                return false;
        }
 
-       MS_DBG("PVR Support : [%d]", nSupportPVR);
+       MS_DBG("PVR Support : [%d]", bSupportPVR);
 
-       return (nSupportPVR != 0);
+       return bSupportPVR;
 }
 #endif