Build error fix when _USE_TV_PROFILE enabled 10/126510/1
authorHaejeong Kim <backto.kim@samsung.com>
Mon, 24 Apr 2017 02:26:11 +0000 (11:26 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Mon, 24 Apr 2017 02:26:11 +0000 (11:26 +0900)
Change-Id: I3b4fc33ff38dfd7f0e8b5a0c5bd9fcda6d62d545

src/media_util_private.c

index d955826..955dc95 100755 (executable)
@@ -284,11 +284,12 @@ int _media_content_rollback_path_in_condition(const char *condition, char *repla
 
 int _media_content_replace_path(const char *path, char *replace_path)
 {
-       int ret = MEDIA_CONTENT_ERROR_NONE;
-
 #ifdef _USE_TV_PROFILE
        snprintf(replace_path, MAX_PATH_LEN, "%s", path);
 #else
+
+       int ret = MEDIA_CONTENT_ERROR_NONE;
+
        if (!STRING_VALID(g_old_path)) {
                ret = storage_get_root_directory(STORAGE_TYPE_INTERNAL, &g_old_path);
                if (ret != STORAGE_ERROR_NONE) {
@@ -315,12 +316,12 @@ int _media_content_replace_path(const char *path, char *replace_path)
 
 int _media_content_rollback_path(const char *path, char *replace_path)
 {
-       int ret = MEDIA_CONTENT_ERROR_NONE;
-
 #ifdef _USE_TV_PROFILE
                snprintf(replace_path, MAX_PATH_LEN, "%s", path);
 #else
 
+       int ret = MEDIA_CONTENT_ERROR_NONE;
+
        if (!STRING_VALID(g_old_path)) {
                ret = storage_get_root_directory(STORAGE_TYPE_INTERNAL, &g_old_path);
                if (ret != STORAGE_ERROR_NONE) {