[easytag/wip/taglib-mp4-cxx: 8/12] Use GIO wrappers in mp4_header.cc
- From: David King <davidk src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [easytag/wip/taglib-mp4-cxx: 8/12] Use GIO wrappers in mp4_header.cc
 
- Date: Fri, 11 Apr 2014 12:01:58 +0000 (UTC)
 
commit 6598df0bcd107977b5a1fcac759961403e35faab
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]