diff options
author | Minje Ahn <minje.ahn@samsung.com> | 2019-01-29 10:56:45 +0900 |
---|---|---|
committer | Minje Ahn <minje.ahn@samsung.com> | 2019-01-31 11:14:31 +0900 |
commit | 7aca7414a06971e6f1467d7a7ece8328007ca5e8 (patch) | |
tree | e51264b460b8762ffd59e6971df6726e0b3a10f1 /src/include/common | |
parent | b6d52f1ee953b3ccbd7aaa76db1d043a44dce16b (diff) | |
download | libmedia-service-7aca7414a06971e6f1467d7a7ece8328007ca5e8.tar.gz libmedia-service-7aca7414a06971e6f1467d7a7ece8328007ca5e8.tar.bz2 libmedia-service-7aca7414a06971e6f1467d7a7ece8328007ca5e8.zip |
[ACR-1348] Fix bug of media_info_insert_to_db APIsubmit/tizen/20190207.065213submit/tizen/20190130.041352accepted/tizen/unified/20190208.061624accepted/tizen/unified/20190131.161508
When the media_info handle is returned, modify it to include the latest media information.
(In the past, if the media info you requested was in the database,
this API returned the media info without making sure it was up-to-date.)
Change-Id: I714b9e62504641e15f4c2df8e8c7d8b49cb73cd8
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/include/common')
-rwxr-xr-x | src/include/common/media-svc-media.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/common/media-svc-media.h b/src/include/common/media-svc-media.h index 091b496..0291193 100755 --- a/src/include/common/media-svc-media.h +++ b/src/include/common/media-svc-media.h @@ -29,6 +29,7 @@ #include "media-svc-util.h" int _media_svc_count_record_with_path(sqlite3 *handle, const char *storage_id, const char *path, int *count); +int _media_svc_get_modified_time(sqlite3 *handle, const char *storage_id, const char *path, int *modified_time); int _media_svc_insert_item_with_data(sqlite3 *handle, const char *storage_id, media_svc_content_info_s *content_info, bool stack_query, uid_t uid); int _media_svc_update_item_with_data(const char *storage_id, media_svc_content_info_s *content_info, uid_t uid); int _media_svc_get_thumbnail_path_by_path(sqlite3 *handle, const char *path, char *thumbnail_path); |