change return value about exif
authorJisung Ahn <jcastle.ahn@samsung.com>
Sun, 27 Jan 2013 06:09:22 +0000 (15:09 +0900)
committerJisung Ahn <jcastle.ahn@samsung.com>
Sun, 27 Jan 2013 06:09:22 +0000 (15:09 +0900)
Change-Id: I7ffbe3c2757f7f07733f201cdfc1fdecc6c634cd

common/src/ivug-exif.c

index 3f3b414..2ce7f92 100755 (executable)
@@ -1161,7 +1161,7 @@ static int __gl_exif_rw_jfif(FILE *fd, const char *file_path,
                if (!b_write) {
                        /* Normal orientation = 0degree = 1 */
                        *orientation = 1;
-                       return 0;
+                       return -1;
                }
                return __gl_exif_add_exif_to_jfif(file_path, orientation);
 #if 0
@@ -1275,7 +1275,7 @@ static int __gl_exif_rw_jfif(FILE *fd, const char *file_path,
                } else{
                        /* Normal orientation = 0degree = 1 */
                        *orientation = 1;
-                       ret = 0;
+                       ret = -1;
                }
                goto GL_EXIF_FAILED;
        }
@@ -1317,7 +1317,7 @@ static int __gl_exif_rw_jfif(FILE *fd, const char *file_path,
                        } else{
                                /* Normal orientation = 0degree = 1 */
                                *orientation = 1;
-                               ret = 0;
+                               ret = -1;
                        }
                        goto GL_EXIF_FAILED;
                }
@@ -1601,7 +1601,7 @@ static int __gl_exif_rw_orient(const char *file_path, unsigned int *orient, bool
                        } else{
                                /* Normal orientation = 0degree = 1 */
                                *orient = 1;
-                               ret = 0;
+                               ret = -1;
                        }
                        goto GL_EXIF_FAILED;
                }
@@ -1747,4 +1747,3 @@ int ivug_exif_set_rotate(const char *file, int degree)
        return ret;
 }
 
-