fixed handling IPTC metadata that admit multiple values

(cherry picked from commit 8becb08ec1417215bf8f02c54000d37c2e6920f0)
This commit is contained in:
Alberto Griggio
2021-11-25 14:32:36 -08:00
committed by Lawrence Lee
parent a0e9a59606
commit b409e0bab2
4 changed files with 70 additions and 17 deletions

View File

@@ -85,7 +85,14 @@ private:
std::shared_ptr<std::unordered_set<std::string>> exif_keys_;
typedef std::pair<std::shared_ptr<Exiv2::Image>, Glib::TimeVal> CacheVal;
struct CacheVal {
std::shared_ptr<Exiv2::Image> image;
Glib::TimeVal image_mtime;
Glib::TimeVal xmp_mtime;
bool use_xmp;
CacheVal() = default;
};
//typedef std::pair<std::shared_ptr<Exiv2::Image>, Glib::TimeVal> CacheVal;
typedef Cache<Glib::ustring, CacheVal> ImageCache;
static std::unique_ptr<ImageCache> cache_;
};