summaryrefslogtreecommitdiff
path: root/src/archive
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-02-03 19:32:31 +0100
committerMax Kellermann <max@musicpd.org>2018-02-03 19:32:31 +0100
commit12fd1cad0cc5472cbe931516970c1ac7aeb7ec00 (patch)
treeaa77a9504bfde4b41352b8c56447021a9e7aebbb /src/archive
parente573cbf0320e5dee844da40002eee5e6bbac225f (diff)
archive/iso9660: libcdio 2.0 compatibility
Closes #173
Diffstat (limited to 'src/archive')
-rw-r--r--src/archive/plugins/Iso9660ArchivePlugin.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/archive/plugins/Iso9660ArchivePlugin.cxx b/src/archive/plugins/Iso9660ArchivePlugin.cxx
index 536745d85..363921527 100644
--- a/src/archive/plugins/Iso9660ArchivePlugin.cxx
+++ b/src/archive/plugins/Iso9660ArchivePlugin.cxx
@@ -115,7 +115,12 @@ Iso9660ArchiveFile::Visit(char *path, size_t length, size_t capacity,
visitor.VisitArchiveEntry(path + 1);
}
}
+
+#if LIBCDIO_VERSION_NUM >= 20000
+ iso9660_filelist_free(entlist);
+#else
_cdio_list_free (entlist, true);
+#endif
}
static ArchiveFile *