tag: exif: Put ExifVersion in the correct IFD
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 11 Aug 2010 11:03:44 +0000 (08:03 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 11 Aug 2010 11:55:59 +0000 (08:55 -0300)
ExifVersion is from the 'exif' ifd, not the 0th ifd.

gst-libs/gst/tag/gstexiftag.c

index 6331c5b..2a688e5 100644 (file)
@@ -175,11 +175,11 @@ static const GstExifTagMatch tag_map_ifd0[] = {
   {GST_TAG_COPYRIGHT, 0x8298, EXIF_TYPE_ASCII, 0, NULL, NULL},
   {NULL, EXIF_IFD_TAG, EXIF_TYPE_LONG, 0, NULL, NULL},
   {NULL, EXIF_GPS_IFD_TAG, EXIF_TYPE_LONG, 0, NULL, NULL},
-  {NULL, EXIF_VERSION_TAG, EXIF_TYPE_UNDEFINED, 0, NULL, NULL},
   {NULL, 0, 0, 0, NULL, NULL}
 };
 
 static const GstExifTagMatch tag_map_exif[] = {
+  {NULL, EXIF_VERSION_TAG, EXIF_TYPE_UNDEFINED, 0, NULL, NULL},
   {GST_TAG_DATE_TIME, 0x9003, EXIF_TYPE_ASCII, 0, NULL, NULL},
   {NULL, 0, 0, 0, NULL, NULL}
 };