From: Minje Ahn Date: Fri, 6 Jan 2017 01:50:47 +0000 (+0900) Subject: Apply coding rule X-Git-Tag: accepted/tizen/3.0/common/20170222.125554^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86f959ed83452877bd1b5a7a6af9aa57129ba3ef;p=platform%2Fcore%2Fmultimedia%2Flibmedia-service.git Apply coding rule Change-Id: Id988e73ef07a6ed17df2794d853228789e4fb5f1 Signed-off-by: Minje Ahn --- 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