}
SAFE_FREE(internal_path);
- if ((STRING_VALID(MEDIA_ROOT_PATH_SDCARD) && strncmp(folder_path, MEDIA_ROOT_PATH_SDCARD, strlen(MEDIA_ROOT_PATH_SDCARD)) == 0) ||
- (STRING_VALID(MEDIA_ROOT_PATH_CLOUD) && strncmp(folder_path, MEDIA_ROOT_PATH_CLOUD, strlen(MEDIA_ROOT_PATH_CLOUD)) == 0)) {
+ if (STRING_VALID(MEDIA_ROOT_PATH_SDCARD) && strncmp(folder_path, MEDIA_ROOT_PATH_SDCARD, strlen(MEDIA_ROOT_PATH_SDCARD)) == 0) {
start_len = strlen(MEDIA_ROOT_PATH_SDCARD);
path_len = strlen(folder_path);
media_svc_debug("ROOT PATH [%s]", folder_path);
*is_root = TRUE;
+ } else if ((STRING_VALID(MEDIA_ROOT_PATH_CLOUD) && strcmp(folder_path, MEDIA_ROOT_PATH_CLOUD) == 0) ||
+ (STRING_VALID(MEDIA_ROOT_PATH_DISC) && strcmp(folder_path, MEDIA_ROOT_PATH_DISC) == 0)) {
+ media_svc_debug("ROOT PATH [%s]", folder_path);
+ *is_root = TRUE;
}
return MS_MEDIA_ERR_NONE;
next_pos = strlen(MEDIA_ROOT_PATH_CLOUD);
else if (STRING_VALID(MEDIA_ROOT_PATH_EXTERNAL) && strncmp(path, MEDIA_ROOT_PATH_EXTERNAL, strlen(MEDIA_ROOT_PATH_EXTERNAL)) == 0)
next_pos = strlen(MEDIA_ROOT_PATH_EXTERNAL);
+ else if (STRING_VALID(MEDIA_ROOT_PATH_DISC) && strncmp(path, MEDIA_ROOT_PATH_DISC, strlen(MEDIA_ROOT_PATH_DISC)) == 0)
+ next_pos = strlen(MEDIA_ROOT_PATH_DISC);
else {
media_svc_error("Invalid Path");
SAFE_FREE(internal_path);
*storage_type = MEDIA_SVC_STORAGE_EXTERNAL;
} else if (STRING_VALID(MEDIA_ROOT_PATH_USB) && (strncmp(path, MEDIA_ROOT_PATH_USB, strlen(MEDIA_ROOT_PATH_USB)) == 0)) {
*storage_type = MEDIA_SVC_STORAGE_EXTERNAL_USB;
+ } else if (STRING_VALID(MEDIA_ROOT_PATH_DISC) && (strncmp(path, MEDIA_ROOT_PATH_DISC, strlen(MEDIA_ROOT_PATH_DISC)) == 0)) {
+ *storage_type = MEDIA_SVC_STORAGE_EXTERNAL;
} else {
media_svc_error("Invalid Path");
SAFE_FREE(internal_path);