Block path replacement(temporary)
[platform/core/api/media-content.git] / src / media_util_private.c
index e8a226e..ef337ad 100755 (executable)
@@ -330,11 +330,11 @@ int _media_content_check_dir(const char *path)
 }
 
 
+/* FIXME : If there are no issue reports related to this, it will be deleted in tizen 6.5 or after. */
 char * _media_content_replace_path_in_condition(const char *condition)
 {
-#ifdef _USE_TVPD_MODE
        return g_strdup(condition);
-#else
+#if 0
        char **split_list = NULL;
        char *result = NULL;
 
@@ -354,11 +354,13 @@ char * _media_content_replace_path_in_condition(const char *condition)
 #endif
 }
 
+/* FIXME : If there are no issue reports related to this, it will be deleted in Tizen 6.5 or after. */
 int _media_content_replace_path(const char *path, char *replace_path)
 {
-#ifdef _USE_TVPD_MODE
+       media_content_retvm_if(!STRING_VALID(path), MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid path");
+
        snprintf(replace_path, MAX_PATH_LEN, "%s", path);
-#else
+#if 0
        if (strncmp(path, MEDIA_ROOT_PATH_INTERNAL_OLD, strlen(MEDIA_ROOT_PATH_INTERNAL_OLD)) == 0) {
                media_content_sec_debug("Old path[%s]", path);
                snprintf(replace_path, MAX_PATH_LEN, "%s%s", MEDIA_ROOT_PATH_INTERNAL, path + strlen(MEDIA_ROOT_PATH_INTERNAL_OLD));
@@ -367,11 +369,6 @@ int _media_content_replace_path(const char *path, char *replace_path)
        }
 #endif
 
-       if (!STRING_VALID(replace_path)) {
-               media_content_error("replace failed");
-               return MEDIA_CONTENT_ERROR_INVALID_OPERATION;
-       }
-
        return MEDIA_CONTENT_ERROR_NONE;
 }