Skip to content

Commit

Permalink
compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Apr 27, 2009
1 parent 3e0cad1 commit e83d047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ GList *exif_get_metadata(ExifData *exif, const gchar *key, MetadataFormat format
if (!key) return NULL;

/* convert xmp key to exif key */
if (strcmp(key, ORIENTATION_KEY) == 0) key = "Exif.Image.Orientation";
if (strcmp(key, "Xmp.tiff.Orientation") == 0) key = "Exif.Image.Orientation";

if (format == METADATA_FORMATTED)
{
Expand Down
6 changes: 3 additions & 3 deletions src/exiv2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -982,12 +982,12 @@ static GList *exif_add_value_to_glist(GList *list, Exiv2::Metadatum &item, Metad
#if EXIV2_TEST_VERSION(0,16,0)
Exiv2::Xmpdatum *xmpdatum;
#endif
if ((exifdatum = dynamic_cast<Exiv2::Exifdatum *>(metadatum)))
if ((exifdatum = dynamic_cast<Exiv2::Exifdatum *>(&item)))
stream << *exifdatum;
else if ((iptcdatum = dynamic_cast<Exiv2::Iptcdatum *>(metadatum)))
else if ((iptcdatum = dynamic_cast<Exiv2::Iptcdatum *>(&item)))
stream << *iptcdatum;
#if EXIV2_TEST_VERSION(0,16,0)
else if ((xmpdatum = dynamic_cast<Exiv2::Xmpdatum *>(metadatum)))
else if ((xmpdatum = dynamic_cast<Exiv2::Xmpdatum *>(&item)))
stream << *xmpdatum;
#endif
str = stream.str();
Expand Down

0 comments on commit e83d047

Please sign in to comment.