[easytag/wip/taglib-mp4-cxx: 15/20] Use GIO wrappers in mp4_header.cc



commit b2a8bf053ea2dca818e69a9d031e2faafdb526f3
Author: David King <amigadave amigadave com>
Date:   Fri Apr 11 08:46:27 2014 +0100

    Use GIO wrappers in mp4_header.cc

 src/mp4_header.cc |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/mp4_header.cc b/src/mp4_header.cc
index 89bf0f4..533b1ac 100644
--- a/src/mp4_header.cc
+++ b/src/mp4_header.cc
@@ -36,7 +36,11 @@ gboolean Mp4_Header_Read_File_Info (gchar *filename, ET_File_Info *ETFileInfo)
     /* Get size of file */
     ETFileInfo->size = et_get_file_size (filename);
 
-    TagLib::MP4::File mp4file (filename);
+    GFile *file = g_file_new_for_path (filename);
+    GIO_InputStream stream (file);
+    TagLib::MP4::File mp4file (&stream);
+
+    g_object_unref (file);
 
     if (!mp4file.isOpen ())
     {


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