summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-05-18 05:37:00 (GMT)
committerHaejeong Kim <backto.kim@samsung.com>2017-05-18 05:37:00 (GMT)
commit89ff1f92c8435282d5dafafccd0eedd9d2f06da4 (patch)
treec32b6aa753a18865ff24f0d6d5cb52c10bf06651 /src/util
parent9854665b61c46ea62b0d4654228327c470be4826 (diff)
downloadlibmedia-thumbnail-89ff1f92c8435282d5dafafccd0eedd9d2f06da4.zip
libmedia-thumbnail-89ff1f92c8435282d5dafafccd0eedd9d2f06da4.tar.gz
libmedia-thumbnail-89ff1f92c8435282d5dafafccd0eedd9d2f06da4.tar.bz2
Change-Id: Ie70b3af27edf6e7fe9a07458c94e679f71961741
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/media-thumb-db.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/util/media-thumb-db.c b/src/util/media-thumb-db.c
index 7ce5d31..540d31b 100755
--- a/src/util/media-thumb-db.c
+++ b/src/util/media-thumb-db.c
@@ -385,39 +385,6 @@ int _media_thumb_db_disconnect()
return err;
}
-int _media_thumb_get_thumb_from_db(const char *origin_path,
- char *thumb_path,
- int max_length,
- int *need_update_db)
-{
- int err = MS_MEDIA_ERR_NONE;
-
- //err = minfo_get_thumb_path(mb_svc_handle, origin_path, thumb_path, max_length);
- err = _media_thumb_get_thumb_path_from_db(db_handle, origin_path, thumb_path, max_length);
- if (err != MS_MEDIA_ERR_NONE) {
- thumb_warn("Original path doesn't exist in DB");
- return err;
- }
-
- if (strlen(thumb_path) == 0) {
- thumb_warn("thumb path doesn't exist in DB");
- *need_update_db = 1;
- return MS_MEDIA_ERR_INTERNAL;
- }
-
- thumb_dbg_slog("Thumb path in DB is %s", thumb_path);
-
- if (!g_file_test(thumb_path, G_FILE_TEST_EXISTS)) {
- thumb_warn("thumb path doesn't exist in file system");
- *need_update_db = 1;
- return MS_MEDIA_ERR_INTERNAL;
- } else {
- thumb_dbg("This thumb path already exist");
- }
-
- return MS_MEDIA_ERR_NONE;
-}
-
int _media_thumb_get_thumb_from_db_with_size(const char *origin_path,
char *thumb_path,
int max_length,