archive/iso9660: libcdio 2.0 compatibility

Closes #173
This commit is contained in:
Max Kellermann 2018-02-03 19:32:31 +01:00
parent e573cbf032
commit 12fd1cad0c
2 changed files with 7 additions and 0 deletions

2
NEWS
View File

@ -4,6 +4,8 @@ ver 0.20.16 (not yet released)
* database
- simple: fix search within mount points
- upnp: enable IPv6
* archive
- iso9660: libcdio 2.0 compatibility
* fix crash in debug build on Haiku and other operating systems
ver 0.20.15 (2018/01/05)

View File

@ -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 *