From 86f959ed83452877bd1b5a7a6af9aa57129ba3ef Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Fri, 6 Jan 2017 10:50:47 +0900 Subject: [PATCH 1/1] Apply coding rule Change-Id: Id988e73ef07a6ed17df2794d853228789e4fb5f1 Signed-off-by: Minje Ahn --- src/common/media-svc-storage.c | 4 ++-- src/common/media-svc-util.c | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/common/media-svc-storage.c b/src/common/media-svc-storage.c index b9b82dc..92692a9 100755 --- a/src/common/media-svc-storage.c +++ b/src/common/media-svc-storage.c @@ -111,7 +111,7 @@ int _media_svc_check_storage(sqlite3 *handle, const char *storage_id, const char SQLITE3_FINALIZE(sql_stmt); /*check storage media table*/ - if(STRING_VALID(storage_id)) { + if (STRING_VALID(storage_id)) { int table_cnt = 0; /*Select list of storage*/ @@ -122,7 +122,7 @@ int _media_svc_check_storage(sqlite3 *handle, const char *storage_id, const char table_cnt = sqlite3_column_int(sql_stmt, 0); SQLITE3_FINALIZE(sql_stmt); - if(table_cnt > 0) { + if (table_cnt > 0) { /*DO NOT THING*/ } else { media_svc_error("media table not exist for storage [%s]", storage_id); diff --git a/src/common/media-svc-util.c b/src/common/media-svc-util.c index b048e66..2331fc8 100755 --- a/src/common/media-svc-util.c +++ b/src/common/media-svc-util.c @@ -618,7 +618,8 @@ static char *__media_svc_get_thumb_path(uid_t uid) return result_passwd; } -static int __media_svc_encode_jpeg(unsigned char *src, unsigned long width, unsigned long height, image_util_colorspace_e colorspace, int quality, unsigned char **dst, unsigned long long *dst_size) { +static int __media_svc_encode_jpeg(unsigned char *src, unsigned long width, unsigned long height, image_util_colorspace_e colorspace, int quality, unsigned char **dst, unsigned long long *dst_size) +{ int res = IMAGE_UTIL_ERROR_NONE; image_util_encode_h encoder = NULL; unsigned char *encoded_data = NULL; @@ -681,7 +682,8 @@ static int __media_svc_encode_jpeg(unsigned char *src, unsigned long width, unsi return MS_MEDIA_ERR_NONE; } -static int __media_svc_decode_jpeg(unsigned char *src, unsigned long long size, image_util_colorspace_e colorspace, unsigned char **dst, unsigned long *width, unsigned long *height, unsigned long long *dst_size) { +static int __media_svc_decode_jpeg(unsigned char *src, unsigned long long size, image_util_colorspace_e colorspace, unsigned char **dst, unsigned long *width, unsigned long *height, unsigned long long *dst_size) +{ int res = IMAGE_UTIL_ERROR_NONE; image_util_decode_h decoder = NULL; res = image_util_decode_create(&decoder); @@ -1995,7 +1997,7 @@ int _media_svc_extract_media_metadata(sqlite3 *handle, media_svc_content_info_s char *p_value = p; char *time_value = time_info; if (time_info != NULL) { - while(*p_value != '\0') { + while (*p_value != '\0') { if (*p_value == '-') *time_value = ':'; else -- 2.7.4