[niepce: 28/29] rust+engine: fix saving keyword in XMP. Requires new exempi-rs.



commit d8f729f085ae2d6f21e3f09bbd74c976dd218c6b
Author: Hubert Figuière <hub figuiere net>
Date:   Sun Sep 17 20:20:52 2017 -0400

    rust+engine: fix saving keyword in XMP. Requires new exempi-rs.

 Cargo.toml                   |    2 +-
 src/engine/db/libmetadata.rs |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/Cargo.toml b/Cargo.toml
index 3892f64..2ec1d30 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@ authors = ["Hubert Figuière <hub figuiere net>"]
 [dependencies]
 libc = "0.2.23"
 rusqlite = { version = "0.12.0", features = ["functions"] }
-exempi = "2.4.3"
+exempi = "2.4.4"
 glib-sys = "0.4.0"
 gio-sys = "0.4.0"
 gio = "0.2.0"
diff --git a/src/engine/db/libmetadata.rs b/src/engine/db/libmetadata.rs
index cddbde1..cc42f41 100644
--- a/src/engine/db/libmetadata.rs
+++ b/src/engine/db/libmetadata.rs
@@ -118,9 +118,9 @@ impl LibMetadata {
                 for i in 0..count {
                     let cstr = unsafe { CStr::from_ptr(string_array_at_cstr(a, i)) };
                     self.xmp.xmp.append_array_item(&ix.ns, &ix.property,
-                                                   exempi::ARRAY_NONE,
+                                                   exempi::PROP_VALUE_IS_ARRAY,
                                                    &*cstr.to_string_lossy(),
-                                                   exempi::ITEM_NONE);
+                                                   exempi::PROP_NONE);
                 }
                 return true;
             } else if unsafe { is_date(value) } {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]