summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-09-04 06:00:34 (GMT)
committerhj kim <backto.kim@samsung.com>2017-09-04 08:08:21 (GMT)
commit22ab0063a95c733ecf82ed9545651c8fc92c8812 (patch)
treef029670e08892542f34f597b4b8738e720fbdf75
parent3dbb064466570381e2660304aa60462d9f95d12f (diff)
downloadlibmedia-thumbnail-22ab0063a95c733ecf82ed9545651c8fc92c8812.zip
libmedia-thumbnail-22ab0063a95c733ecf82ed9545651c8fc92c8812.tar.gz
libmedia-thumbnail-22ab0063a95c733ecf82ed9545651c8fc92c8812.tar.bz2
Change-Id: I9325741c7aaa538ff8234599cb30128cb1ea7111
-rwxr-xr-x[-rw-r--r--]md5/md5.h8
-rwxr-xr-x[-rw-r--r--]md5/media-thumb-hash.c2
-rwxr-xr-xsrc/include/util/media-thumb-debug.h2
-rwxr-xr-xsrc/ipc/media-thumb-ipc.c4
-rwxr-xr-xsrc/media-thumb-internal.c2
-rwxr-xr-xsrc/media-thumbnail.c4
-rwxr-xr-xsrc/util/media-thumb-debug.c2
7 files changed, 12 insertions, 12 deletions
diff --git a/md5/md5.h b/md5/md5.h
index 7cc0a35..72c9994 100644..100755
--- a/md5/md5.h
+++ b/md5/md5.h
@@ -30,9 +30,9 @@ typedef struct MD5Context {
unsigned char in[64];
} MD5_CTX;
-extern void media_thumb_MD5Init(MD5_CTX *context);
-extern void media_thumb_MD5Update(MD5_CTX *context,unsigned char const *buf,unsigned len);
-extern void media_thumb_MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
-extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
+extern void media_thumb_MD5Init(MD5_CTX *context);
+extern void media_thumb_MD5Update(MD5_CTX *context, unsigned char const *buf, unsigned len);
+extern void media_thumb_MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
+extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
#endif
diff --git a/md5/media-thumb-hash.c b/md5/media-thumb-hash.c
index abd4fda..b0a94f7 100644..100755
--- a/md5/media-thumb-hash.c
+++ b/md5/media-thumb-hash.c
@@ -104,4 +104,4 @@ char *_media_thumb_generate_hash_name(const char *file)
md5out[2 * n] = '\0';
return md5out;
-} \ No newline at end of file
+}
diff --git a/src/include/util/media-thumb-debug.h b/src/include/util/media-thumb-debug.h
index 9cfbe2d..83333fa 100755
--- a/src/include/util/media-thumb-debug.h
+++ b/src/include/util/media-thumb-debug.h
@@ -83,7 +83,7 @@
} while (0)
#define thumb_retv_if(expr, val) do { \
if (expr) { \
- LOGE(FONT_COLOR_RED""FONT_COLOR_RESET); \
+ LOGE(FONT_COLOR_RED""FONT_COLOR_RESET); \
return (val); \
} \
} while (0)
diff --git a/src/ipc/media-thumb-ipc.c b/src/ipc/media-thumb-ipc.c
index 46f7ae8..3e8ccec 100755
--- a/src/ipc/media-thumb-ipc.c
+++ b/src/ipc/media-thumb-ipc.c
@@ -754,7 +754,7 @@ int _media_thumb_request_async(int msg_type, unsigned int request_id, const char
thumb_req->path = g_strdup(origin_path);
thumb_req->userData = userData;
thumb_req->isCanceled = false;
- thumb_req->isRequested= false;
+ thumb_req->isRequested = false;
thumb_req->request_id = request_id;
thumb_req->uid = uid;
@@ -792,7 +792,7 @@ int _media_thumb_request_raw_data_async(int msg_type, int request_id, const char
thumb_req->height = height;
thumb_req->userData = userData;
thumb_req->isCanceled = false;
- thumb_req->isRequested= false;
+ thumb_req->isRequested = false;
thumb_req->uid = uid;
len = g_queue_get_length(g_manage_raw_queue);
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index ef0f51d..c6c4a57 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -1201,7 +1201,7 @@ int _media_thumb_get_hash_name(const char *file_full_path, char *thumb_hash_path
_media_thumb_get_file_ext(file_full_path, file_ext, sizeof(file_ext));
ret = ms_user_get_storage_type(uid, file_full_path, &storage_type);
- if((ret != MS_MEDIA_ERR_NONE) || ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL))) {
+ if ((ret != MS_MEDIA_ERR_NONE) || ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL))) {
thumb_err_slog("origin path(%s) is invalid. err : [%d] storage_type [%d]", file_full_path, ret, storage_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
diff --git a/src/media-thumbnail.c b/src/media-thumbnail.c
index 8a4645f..2fb3065 100755
--- a/src/media-thumbnail.c
+++ b/src/media-thumbnail.c
@@ -49,7 +49,7 @@ int thumbnail_request_from_db(const char *origin_path, char *thumb_path, int max
ms_user_storage_type_e store_type = -1;
err = ms_user_get_storage_type(uid, origin_path, &store_type);
- if((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
+ if ((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
thumb_err_slog("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
@@ -83,7 +83,7 @@ int thumbnail_request_from_db_async(unsigned int request_id, const char *origin_
ms_user_storage_type_e store_type = -1;
err = ms_user_get_storage_type(uid, origin_path, &store_type);
- if((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
+ if ((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
thumb_err_slog("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
diff --git a/src/util/media-thumb-debug.c b/src/util/media-thumb-debug.c
index f293afd..33d33af 100755
--- a/src/util/media-thumb-debug.c
+++ b/src/util/media-thumb-debug.c
@@ -105,4 +105,4 @@ thumb_print_debug_time_ex(long start, long end, const char *func_name, char *tim
thumb_dbg("time [%s: %s] : %f", func_name, time_string, totaltime);
#endif
}
-#endif \ No newline at end of file
+#endif