diff options
-rwxr-xr-x | packaging/capi-content-media-content.spec | 2 | ||||
-rwxr-xr-x | src/media_content.c | 6 | ||||
-rwxr-xr-x | src/media_info.c | 10 | ||||
-rwxr-xr-x | src/media_pvr.c | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/packaging/capi-content-media-content.spec b/packaging/capi-content-media-content.spec index 3bca763..1149da8 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.2.91 +Version: 0.2.92 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_content.c b/src/media_content.c index d0175f9..6b9e188 100755 --- a/src/media_content.c +++ b/src/media_content.c @@ -1105,7 +1105,7 @@ int media_content_scan_file(const char *path) media_content_retvm_if(ignore_file == TRUE, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid path"); memset(storage_id, 0x00, sizeof(storage_id)); - ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id); + ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id, tzplatform_getuid(TZ_USER_NAME)); if (ret != MS_MEDIA_ERR_NONE) { media_content_error("media_svc_get_storage_id failed : %d", ret); return _content_error_capi(MEDIA_CONTENT_TYPE, ret); @@ -1291,7 +1291,7 @@ int media_content_scan_folder(const char *path, bool is_recursive, media_scan_co cb_data->callback = callback; cb_data->user_data = user_data; - ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id); + ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id, tzplatform_getuid(TZ_USER_NAME)); /*FIX ME. need to check ret value?*/ ret = media_directory_scanning_async(repl_path, storage_id, is_recursive, _media_content_scan_cb, cb_data, tzplatform_getuid(TZ_USER_NAME)); @@ -1324,7 +1324,7 @@ int media_content_scan_folder_v2(const char *path, bool is_recursive, media_scan cb_data->callback = callback; cb_data->user_data = user_data; - ret = media_svc_get_storage_id(_content_get_db_handle(), path, storage_id); + ret = media_svc_get_storage_id(_content_get_db_handle(), path, storage_id, tzplatform_getuid(TZ_USER_NAME)); /*FIX ME. need to check ret value?*/ ret = media_directory_scanning_async(path, storage_id, is_recursive, _media_content_scan_cb_v2, cb_data, tzplatform_getuid(TZ_USER_NAME)); diff --git a/src/media_info.c b/src/media_info.c index 39f7435..f3a1b68 100755 --- a/src/media_info.c +++ b/src/media_info.c @@ -432,7 +432,7 @@ int media_info_insert_to_db(const char *path, media_info_h *info) media_content_retvm_if(ignore_dir == TRUE, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid folder path"); memset(storage_id, 0x00, sizeof(storage_id)); - ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id); + ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id, tzplatform_getuid(TZ_USER_NAME)); if (ret != MS_MEDIA_ERR_NONE) { media_content_error("media_svc_get_storage_id failed : %d", ret); return _content_error_capi(MEDIA_CONTENT_TYPE, ret); @@ -603,7 +603,7 @@ int media_info_get_media_info_by_path_from_db(const char* path, media_info_h* me media_content_retvm_if(media == NULL, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "invalid info"); memset(storage_id, 0x00, sizeof(storage_id)); - ret = media_svc_get_storage_id(_content_get_db_handle(), path, storage_id); + ret = media_svc_get_storage_id(_content_get_db_handle(), path, storage_id, tzplatform_getuid(TZ_USER_NAME)); if (ret != MS_MEDIA_ERR_NONE) { media_content_error("media_svc_get_storage_id failed : %d", ret); return _content_error_capi(MEDIA_CONTENT_TYPE, ret); @@ -2897,7 +2897,7 @@ int media_info_refresh_metadata_to_db(const char *media_id) } memset(storage_id, 0x00, sizeof(storage_id)); - ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id); + ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id, tzplatform_getuid(TZ_USER_NAME)); if (ret != MS_MEDIA_ERR_NONE) { media_content_error("media_svc_get_storage_id failed : %d", ret); SAFE_FREE(file_path); @@ -2963,7 +2963,7 @@ int media_info_move_to_db(media_info_h media, const char* dst_path) } memset(storage_id, 0x00, sizeof(storage_id)); - ret = media_svc_get_storage_id(_content_get_db_handle(), org_repl_path, storage_id); + ret = media_svc_get_storage_id(_content_get_db_handle(), org_repl_path, storage_id, tzplatform_getuid(TZ_USER_NAME)); if (ret != MS_MEDIA_ERR_NONE) { media_content_error("media_svc_get_storage_id failed : %d", ret); return _content_error_capi(MEDIA_CONTENT_TYPE, ret); @@ -3541,7 +3541,7 @@ int media_info_create(const char *path, media_info_h *media) SAFE_FREE(folder_path); media_content_retvm_if(ignore_dir == TRUE, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid folder path"); - ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id); + ret = media_svc_get_storage_id(_content_get_db_handle(), repl_path, storage_id, tzplatform_getuid(TZ_USER_NAME)); if (ret != MS_MEDIA_ERR_NONE) { media_content_error("media_svc_get_storage_id failed : %d", ret); return _content_error_capi(MEDIA_CONTENT_TYPE, ret); diff --git a/src/media_pvr.c b/src/media_pvr.c index a916b44..1aa171d 100755 --- a/src/media_pvr.c +++ b/src/media_pvr.c @@ -1290,7 +1290,7 @@ int media_pvr_set_is_local_record(const char *pvr_path, bool is_local_record) } else { /*get the storage uuid*/ - ret = media_svc_get_storage_id(_content_get_db_handle(), pvr_path, storage_id); + ret = media_svc_get_storage_id(_content_get_db_handle(), pvr_path, storage_id, tzplatform_getuid(TZ_USER_NAME)); if (ret == MS_MEDIA_ERR_NONE) { media_content_error("storage uuid [%s]", storage_id); update_query = sqlite3_mprintf(UPDATE_PVR_LOCAL_RECORD_PVR, is_local_record, pvr_path, storage_id); |