if (strncmp(path, MEDIA_ROOT_PATH_EXTERNAL, strlen(MEDIA_ROOT_PATH_EXTERNAL)) == 0) {
snprintf(repl_path, sizeof(repl_path), "%s", path);
} else {
- if (storage_get_origin_internal_path(path, MAX_FILEPATH_LEN, repl_path) != STORAGE_ERROR_NONE) {
- MSAPI_DBG("Failed to change internal path");
- return MS_MEDIA_ERR_INTERNAL;
+ if (storage_get_compat_internal_path(path, MAX_FILEPATH_LEN, repl_path) != STORAGE_ERROR_NONE) {
+ MSAPI_DBG("Failed to change internal path..[%s] So, sending original path", path);
+ memset(repl_path, 0, sizeof(repl_path));
+ snprintf(repl_path, sizeof(repl_path), "%s", path);
}
}
if (strncmp(path, MEDIA_ROOT_PATH_EXTERNAL, strlen(MEDIA_ROOT_PATH_EXTERNAL)) == 0) {
snprintf(repl_path, sizeof(repl_path), "%s", path);
} else {
- if (storage_get_origin_internal_path(path, MAX_FILEPATH_LEN, repl_path) != STORAGE_ERROR_NONE) {
- MSAPI_DBG("Failed to change internal path");
- return MS_MEDIA_ERR_INTERNAL;
+ if (storage_get_compat_internal_path(path, MAX_FILEPATH_LEN, repl_path) != STORAGE_ERROR_NONE) {
+ MSAPI_DBG("Failed to change internal path..[%s] So, sending original path", path);
+ memset(repl_path, 0, sizeof(repl_path));
+ snprintf(repl_path, sizeof(repl_path), "%s", path);
}
}
Name: media-server
Summary: A server for media content management
-Version: 0.3.21
+Version: 0.3.22
Release: 0
Group: Multimedia/Service
License: Apache-2.0