[gthumb] exiv2: preserve the Xmp lists read from the sidecars as well
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] exiv2: preserve the Xmp lists read from the sidecars as well
- Date: Sun, 29 Apr 2012 10:12:55 +0000 (UTC)
commit 21f0d4da2424d52bbe4f8a64d737c3a27ad3552a
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Apr 29 11:41:22 2012 +0200
exiv2: preserve the Xmp lists read from the sidecars as well
extensions/exiv2_tools/exiv2-utils.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/extensions/exiv2_tools/exiv2-utils.cpp b/extensions/exiv2_tools/exiv2-utils.cpp
index 9535675..a38ab08 100644
--- a/extensions/exiv2_tools/exiv2-utils.cpp
+++ b/extensions/exiv2_tools/exiv2-utils.cpp
@@ -847,6 +847,13 @@ exiv2_read_sidecar (GFile *file,
raw_value.str().c_str(),
"Xmp::Sidecar",
md->typeName());
+
+ if ((g_strcmp0 (md->typeName(), "XmpBag") == 0)
+ || (g_strcmp0 (md->typeName(), "XmpSeq") == 0))
+ {
+ add_string_list_to_metadata (metadata, *md);
+ }
+
add_metadata_to_hash (table, metadata);
_g_object_unref (metadata);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]