[gexiv2] Replaced open_stream() with open_path()



commit 49530bdfbd02dd0b3f74bede4166bee3f088a672
Author: postscript-dev <43813-postscript-dev users noreply gitlab gnome org>
Date:   Sat Feb 20 14:24:26 2021 +0000

    Replaced open_stream() with open_path()

 tools/gexiv2-tool.vala | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/tools/gexiv2-tool.vala b/tools/gexiv2-tool.vala
index 64579d7..d8673ef 100644
--- a/tools/gexiv2-tool.vala
+++ b/tools/gexiv2-tool.vala
@@ -108,8 +108,7 @@ int main(string[] args) {
 
         // Try to open the user's file
         GExiv2.Metadata metadata = new GExiv2.Metadata();
-        var file = File.new_for_commandline_arg(args[1]);
-        metadata.from_stream(file.read());
+        metadata.from_path(args[1]);
 
         // Get tag names from file
         var exif_tags = metadata.get_exif_tags();
@@ -237,4 +236,4 @@ string extract_filename(string filename_and_path) {
         }
     }
     return filename_and_path.substring(pos, filename_and_path.length - pos);
-}
\ No newline at end of file
+}


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