2004-11-15 Lutz Mueller <lutz@users.sourceforge.net>
authorLutz Mueller <lutz.s.mueller@gmail.com>
Mon, 15 Nov 2004 07:09:56 +0000 (08:09 +0100)
committerLutz Mueller <lutz.s.mueller@gmail.com>
Mon, 15 Nov 2004 07:09:56 +0000 (08:09 +0100)
* libexif/exif-data.c: Additional debugging message if
  specification is violated.

ChangeLog
libexif/exif-data.c

index ce8290e..38b172e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-15  Lutz Mueller <lutz@users.sourceforge.net>
+
+       * libexif/exif-data.c: Additional debugging message if 
+         specification is violated.
+
 2004-11-14  Lutz Mueller <lutz@users.sourceforge.net>
 
        * libexif/*: Plug another few memleaks. All found by Angala Wrobel.
index 7f29dee..497e3fd 100644 (file)
@@ -265,6 +265,14 @@ if (data->ifd[(i)] == ifd) {                               \
                "'%s' detected. Skipping...",           \
                exif_ifd_get_name (i));                 \
        break;                                          \
+}                                                      \
+if (data->ifd[(i)]->count) {                           \
+       exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, \
+               "ExifData", "Attemt to load IFD "       \
+               "'%s' multiple times detected. "        \
+               "Skipping...",                          \
+               exif_ifd_get_name (i));                 \
+       break;                                          \
 }
 
 static void