#include <media_util_private.h>
#endif
-#define TIZEN_USER_CONTENT_PATH tzplatform_getenv(TZ_USER_CONTENT)
-
int _media_util_check_file_exist(const char *path)
{
int exist;
goto ERROR;
}
- to_replace_str = g_strdup(TIZEN_USER_CONTENT_PATH);
+ to_replace_str = g_strdup(MEDIA_ROOT_PATH_INTERNAL);
if (!STRING_VALID(to_replace_str)) {
media_content_error("Get TZ_USER_CONTENT failed");
ret = MEDIA_CONTENT_ERROR_INVALID_OPERATION;
goto ERROR;
}
} else {
- find_str = g_strdup(TIZEN_USER_CONTENT_PATH);
+ find_str = g_strdup(MEDIA_ROOT_PATH_INTERNAL);
if (!STRING_VALID(find_str)) {
media_content_error("Get TZ_USER_CONTENT failed");
ret = MEDIA_CONTENT_ERROR_INVALID_OPERATION;
if (strncmp(path, old_internal_path, strlen(old_internal_path)) == 0) {
media_content_sec_debug("Old path[%s]", path);
- snprintf(replace_path, MAX_PATH_LEN, "%s%s", TIZEN_USER_CONTENT_PATH, path + strlen(old_internal_path));
+ snprintf(replace_path, MAX_PATH_LEN, "%s%s", MEDIA_ROOT_PATH_INTERNAL, path + strlen(old_internal_path));
} else {
snprintf(replace_path, MAX_PATH_LEN, "%s", path);
}
return MEDIA_CONTENT_ERROR_INVALID_OPERATION;
}
- if (strncmp(path, TIZEN_USER_CONTENT_PATH, strlen(TIZEN_USER_CONTENT_PATH)) == 0) {
+ if (strncmp(path, MEDIA_ROOT_PATH_INTERNAL, strlen(MEDIA_ROOT_PATH_INTERNAL)) == 0) {
media_content_sec_debug("new path[%s]", path);
- snprintf(replace_path, MAX_PATH_LEN, "%s%s", old_internal_path, path + strlen(TIZEN_USER_CONTENT_PATH));
+ snprintf(replace_path, MAX_PATH_LEN, "%s%s", old_internal_path, path + strlen(MEDIA_ROOT_PATH_INTERNAL));
} else {
snprintf(replace_path, MAX_PATH_LEN, "%s", path);
}