瀏覽代碼

Fix EXIF fetching

DarthSim 6 年之前
父節點
當前提交
5ac6ce5ce9
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 1
      main.go
  2. 1 2
      vips.h

+ 1 - 1
main.go

@@ -8,7 +8,7 @@ import (
 	_ "net/http/pprof"
 )
 
-const version = "2.1.0.rc1"
+const version = "2.1.0"
 
 type ctxKey string
 

+ 1 - 2
vips.h

@@ -109,10 +109,9 @@ vips_get_exif_orientation(VipsImage *image) {
 
 	if (
 		vips_image_get_typeof(image, EXIF_ORIENTATION) != 0 &&
-		!vips_image_get_string(image, EXIF_ORIENTATION, &orientation)
+		vips_image_get_string(image, EXIF_ORIENTATION, &orientation) == 0
 	) return atoi(&orientation[0]);
 
-  vips_error("vips_get_exif_orientation", "Can't get EXIF orientation");
 	return 1;
 }