File: EXIF_T_GPSIFD.patch

package info (click to toggle)
libimage-exif-perl 2.01-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 412 kB
  • sloc: ansic: 5,025; perl: 375; makefile: 8
file content (61 lines) | stat: -rw-r--r-- 1,205 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- a/exif.c
+++ b/exif.c
@@ -256,10 +256,11 @@
 				return;
 			}
 			break;
-
+			/*
 		case EXIF_T_GPSIFD:
 			gpsprop(prop, t);
 			return;
+			*/
 		}
 	}
 
@@ -529,11 +530,15 @@
 			readifd(prop->value, &dir->next, tags, md);
 		else
 #endif
+		  /*
 			if (prop->tag == EXIF_T_GPSIFD) {
 				dir->next = readifds(prop->value, gpstags, md);
 			} else {
+		  */
 				dir->next = readifds(prop->value, tags, md);
+		/*
 			}
+		*/
 
 		if (!dir->next) {
 
@@ -640,7 +645,7 @@
 		 * XXX Note that this is kind of dangerous -- any other
 		 * tag set won't reach the end of the switch...
 		 */
-		if (prop->tagset != gpstags)
+	  //		if (prop->tagset != gpstags)
 			break;
 		/* FALLTHROUGH */
 
--- a/exifint.h
+++ b/exifint.h
@@ -52,7 +52,7 @@
 /* Exif IFD tags. */
 
 #define EXIF_T_EXIFIFD		0x8769
-#define EXIF_T_GPSIFD		0x8825
+//#define EXIF_T_GPSIFD		0x8825
 #define EXIF_T_MAKERNOTE	0x927c
 #define EXIF_T_INTEROP		0xa005
 
@@ -148,7 +148,7 @@
 
 /* Interface to exifgps.c. */
 
-extern struct exiftag gpstags[];
-extern void gpsprop(struct exifprop *prop, struct exiftags *t);
+//extern struct exiftag gpstags[];
+//extern void gpsprop(struct exifprop *prop, struct exiftags *t);
 
 #endif