Don't warn "No thumbnail but entries on thumbnail." unless
authorDan Fandrich <dan@coneharvesters.com>
Fri, 18 Dec 2009 02:18:27 +0000 (18:18 -0800)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 18 Dec 2009 02:18:27 +0000 (18:18 -0800)
there actually are entries.

ChangeLog
libexif/exif-data.c

index bee0b44..83cdac8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-17  Dan Fandrich <dan@coneharvesters.com>
+
+       * Don't warn "No thumbnail but entries on thumbnail." unless
+         there actually are entries.
+
 2009-12-15  Dan Fandrich <dan@coneharvesters.com>
 
        * libexif.pc.in: Move -lm flag into Libs.private since it's only
index 6f13201..8454a40 100644 (file)
@@ -1255,7 +1255,7 @@ fix_func (ExifContent *c, void *UNUSED(data))
        case EXIF_IFD_1:
                if (c->parent->data)
                        exif_content_fix (c);
-               else {
+               else if (c->count) {
                        exif_log (c->parent->priv->log, EXIF_LOG_CODE_DEBUG, "exif-data",
                                  "No thumbnail but entries on thumbnail. These entries have been "
                                  "removed.");