Apply coding rule 12/108812/1 accepted/tizen/3.0/common/20170222.125554 accepted/tizen/3.0/ivi/20170222.081457 accepted/tizen/3.0/mobile/20170222.081324 accepted/tizen/3.0/tv/20170222.081410 accepted/tizen/3.0/wearable/20170222.081434 submit/tizen_3.0/20170221.063415
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 6 Jan 2017 01:50:47 +0000 (10:50 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Fri, 6 Jan 2017 01:50:47 +0000 (10:50 +0900)
Change-Id: Id988e73ef07a6ed17df2794d853228789e4fb5f1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/common/media-svc-storage.c
src/common/media-svc-util.c

index b9b82dc..92692a9 100755 (executable)
@@ -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);
index b048e66..2331fc8 100755 (executable)
@@ -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