aboutsummaryrefslogtreecommitdiffstats
path: root/exiftran.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2004-06-30 13:41:54 +0000
committerkraxel <kraxel>2004-06-30 13:41:54 +0000
commit29df0ee01fdaa94eebf4a04b76be610f1df7b9d3 (patch)
tree7f42bb3e19eb89c83c4123aa095c21ea7c87093b /exiftran.c
parentb6a435badc8d2cd793a7605e43d2787841b2bf75 (diff)
downloadfbida-29df0ee01fdaa94eebf4a04b76be610f1df7b9d3.tar.gz
- fixups for new libexif.
Diffstat (limited to 'exiftran.c')
-rw-r--r--exiftran.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/exiftran.c b/exiftran.c
index 6db3fd2..382c998 100644
--- a/exiftran.c
+++ b/exiftran.c
@@ -21,6 +21,9 @@
static void dump_exif(FILE *out, ExifData *ed)
{
const char *title, *value;
+#ifdef HAVE_NEW_EXIF
+ char buffer[256];
+#endif
ExifEntry *ee;
int tag,i;
@@ -33,7 +36,11 @@ static void dump_exif(FILE *out, ExifData *ed)
ee = exif_content_get_entry (ed->ifd[i], tag);
if (NULL == ee)
continue;
+#ifdef HAVE_NEW_EXIF
+ value = exif_entry_get_value(ee, buffer, sizeof(buffer));
+#else
value = exif_entry_get_value(ee);
+#endif
fprintf(out," 0x%04x %-30s %s\n", tag, title, value);
}
}