summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinclude/media_info.h3
-rwxr-xr-xpackaging/capi-content-media-content.spec2
-rwxr-xr-xsrc/media_info.c5
3 files changed, 8 insertions, 2 deletions
diff --git a/include/media_info.h b/include/media_info.h
index c4a17a3..20af652 100755
--- a/include/media_info.h
+++ b/include/media_info.h
@@ -1572,7 +1572,8 @@ int media_info_set_added_time(media_info_h media, time_t added_time) TIZEN_DEPRE
* @remarks You must add privilege http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
* If you want to access only internal storage by using this API, you should add privilege http://tizen.org/privilege/mediastorage. \n
* Or if you want to access only external storage by using this API, you should add privilege http://tizen.org/privilege/externalstorage. \n
- * If you can access both storage, you should add all privilege.
+ * If you can access both storage, you should add all privilege. \n
+ * This API does not support USB storage.
*
* @param[in] media The media info handle
* @param[in] dst_path The path of destination
diff --git a/packaging/capi-content-media-content.spec b/packaging/capi-content-media-content.spec
index f049d25..99aa9a3 100755
--- a/packaging/capi-content-media-content.spec
+++ b/packaging/capi-content-media-content.spec
@@ -1,6 +1,6 @@
Name: capi-content-media-content
Summary: A Media content library in Tizen Native API
-Version: 0.3.22
+Version: 0.3.23
Release: 0
Group: Multimedia/API
License: Apache-2.0
diff --git a/src/media_info.c b/src/media_info.c
index c8ee3be..ce4311f 100755
--- a/src/media_info.c
+++ b/src/media_info.c
@@ -3068,6 +3068,11 @@ int media_info_move_to_db(media_info_h media, const char* dst_path)
return _content_error_capi(MEDIA_CONTENT_TYPE, ret);
}
+ if (src_storage_type == MEDIA_SVC_STORAGE_EXTERNAL_USB || dst_storage_type == MEDIA_SVC_STORAGE_EXTERNAL_USB) {
+ media_content_sec_error("Unsupported storage type src[%d] dst[%d]", src_storage_type, dst_storage_type);
+ return MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
+ }
+
memset(storage_id, 0x00, sizeof(storage_id));
ret = media_svc_get_storage_id(_content_get_db_handle(), org_repl_path, storage_id, _content_get_uid());
if (ret != MS_MEDIA_ERR_NONE) {