Skip to content

Commit

Permalink
Disable non-working Iptc.Application2.Keywords reading introduced in …
Browse files Browse the repository at this point in the history
…revision 736.
  • Loading branch information
Laurent Monin committed May 12, 2008
1 parent 874ac4e commit 7b4885c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/bar_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,13 @@ static gint comment_xmp_read(FileData *fd, GList **keywords, gchar **comment)
if (!kw) break;
*keywords = g_list_append(*keywords, (gpointer) kw);
}

#if 0
/* FIXME:
* Exiv2 handles Iptc keywords as multiple entries with the
* same key, thus exif_get_item returns only the first keyword
* and the only way to get all keywords is to iterate through
* the item list.
*/
item = exif_get_item(exif, "Iptc.Application2.Keywords");
for (i = 0; i < exif_item_get_elements(item); i++)
{
Expand All @@ -309,6 +315,7 @@ static gint comment_xmp_read(FileData *fd, GList **keywords, gchar **comment)
if (!kw) break;
*keywords = g_list_append(*keywords, (gpointer) kw);
}
#endif
}

exif_free(exif);
Expand Down

0 comments on commit 7b4885c

Please sign in to comment.