fixed handling IPTC metadata that admit multiple values
(cherry picked from commit 8becb08ec1417215bf8f02c54000d37c2e6920f0)
This commit is contained in:
committed by
Lawrence Lee
parent
a0e9a59606
commit
b409e0bab2
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user