[totem-pl-parser] disc: Update for libarchive 3.0



commit ee6a083d628b4176a6c3895fc9ec03f974737dd6
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jun 21 18:40:00 2013 +0200

    disc: Update for libarchive 3.0
    
    Get rid of a few deprecated functions. They will still work until
    libarchive 4.0 is out.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702828

 configure.ac         |    2 +-
 plparse/totem-disc.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8e87dd0..c920cd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,7 +46,7 @@ AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
 GLIB_REQS=2.31.0
 GIO_REQS=2.24.0
 QUVI_REQS=0.9.1
-LIBARCHIVE_REQS=2.8.4
+LIBARCHIVE_REQS=3.0
 
 # Before making a release, the PLPARSER_LT_VERSION string should be modified.
 # The string is of the form C:R:A.
diff --git a/plparse/totem-disc.c b/plparse/totem-disc.c
index 83d1137..6ff99a2 100644
--- a/plparse/totem-disc.c
+++ b/plparse/totem-disc.c
@@ -282,7 +282,7 @@ cd_cache_check_archive (CdCache *cache,
   int r;
 
   a = archive_read_new();
-  archive_read_support_compression_all(a);
+  archive_read_support_filter_all(a);
   archive_read_support_format_all(a);
   r = archive_read_open_filename(a, filename, 10240);
   if (r != ARCHIVE_OK) {
@@ -309,7 +309,7 @@ cd_cache_check_archive (CdCache *cache,
     }
     archive_read_data_skip(a);
   }
-  archive_read_finish(a);
+  archive_read_free(a);
   return TRUE;
 #endif
 }


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