From 6710aa856175300e598b23b701c0d2741f2cb6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 28 Apr 2019 16:45:36 +0200 Subject: New upstream version 0.30.4 --- src/photos/PhotoMetadata.vala | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/photos/PhotoMetadata.vala') diff --git a/src/photos/PhotoMetadata.vala b/src/photos/PhotoMetadata.vala index 2c2d6c5..288a362 100644 --- a/src/photos/PhotoMetadata.vala +++ b/src/photos/PhotoMetadata.vala @@ -70,6 +70,8 @@ public class ACDSeeKeywordTransformer : KeywordTransformer { } public override Gee.List transform (string input) throws Error { + this.stack.clear(); + this.result.clear(); var ctx = new MarkupParseContext (this.parser, 0, this, null); ctx.parse (input, input.length); @@ -276,7 +278,11 @@ public class PhotoMetadata : MediaMetadata { exiv2 = new GExiv2.Metadata(); exif = null; +#if NEW_GEXIV2_API + exiv2.open_buf(buffer[0:length]); +#else exiv2.open_buf(buffer, length); +#endif exif = Exif.Data.new_from_data(buffer, length); source_name = "".printf(length); } @@ -285,8 +291,11 @@ public class PhotoMetadata : MediaMetadata { exiv2 = new GExiv2.Metadata(); exif = null; - exiv2.from_app1_segment(buffer.get_data(), (long) buffer.get_size()); +#if NEW_GEXIV2_API + exiv2.from_app1_segment(buffer.get_data()); +#else exif = Exif.Data.new_from_data(buffer.get_data(), buffer.get_size()); +#endif source_name = "".printf(buffer.get_size()); } -- cgit v1.2.3