[easytag/wip/help: 12/18] Use GIO wrappers in mp4_header.cc



commit 3b3f81a72c9de5dfb0fbd3f06eb7a6957bc944cd
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]