projects
/
platform
/
core
/
multimedia
/
media-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c2cabf
)
fix path issue when get folder id
82/217582/1
author
chengyj1985
<yujie.cheng@samsung.com>
Tue, 12 Nov 2019 13:44:46 +0000
(21:44 +0800)
committer
chengyj1985
<yujie.cheng@samsung.com>
Tue, 12 Nov 2019 13:44:46 +0000
(21:44 +0800)
Change-Id: Icf52db1d8dfaab168ca33e3bbc2b79730ca0e10b
src/common/media-common-db-svc.c
patch
|
blob
|
history
diff --git
a/src/common/media-common-db-svc.c
b/src/common/media-common-db-svc.c
index
ae93649
..
1bd55bd
100644
(file)
--- a/
src/common/media-common-db-svc.c
+++ b/
src/common/media-common-db-svc.c
@@
-236,7
+236,10
@@
int __ms_check_item_exist(sqlite3 *handle, const char *storage_id, const char *p
char* folder_id_folder = NULL;
folder_id_media = (char *)sqlite3_column_text(sql_stmt, 4);
- ret = ms_get_folder_id(handle, storage_id, path, &folder_id_folder);
+ char* folder_path = NULL;
+ folder_path = g_path_get_dirname(path);
+ ret = ms_get_folder_id(handle, storage_id, folder_path, &folder_id_folder);
+ MS_SAFE_FREE(folder_path);
if(ret == MS_MEDIA_ERR_NONE) {
if (g_strcmp0(folder_id_media, folder_id_folder) == 0)
*modified = false;