diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-06 11:09:36 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-06 11:09:36 +0200 |
commit | 3ef043392c849f3042acc630942a35fa722a3943 (patch) | |
tree | 65d92e57763da03c57dbd86ed30debb2b7f46add /src/input | |
parent | 864d6f312d30ea3ae145d901d245f90c8bd11185 (diff) |
input/cdio_paranoia: drop support for libcdio-paranoia older than 10.2+0.93+1
Version 10.2+0.93+1 was released five years ago in 2014 and is the
first version to feature cdio_cddap_free_messages(). There is no way
to check the libcdio-paranoia version at compile time, so let's just
remove support for older versions instead of attempting to fix the
cdio_cddap_free_messages() check at build time.
Closes https://github.com/MusicPlayerDaemon/MPD/issues/613
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/plugins/CdioParanoiaInputPlugin.cxx | 4 | ||||
-rw-r--r-- | src/input/plugins/meson.build | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/input/plugins/CdioParanoiaInputPlugin.cxx b/src/input/plugins/CdioParanoiaInputPlugin.cxx index 2a96b6082..6b7630941 100644 --- a/src/input/plugins/CdioParanoiaInputPlugin.cxx +++ b/src/input/plugins/CdioParanoiaInputPlugin.cxx @@ -298,11 +298,7 @@ CdioParanoiaInputStream::Read(void *ptr, size_t length) if (s_err) { FormatError(cdio_domain, "paranoia_read: %s", s_err); -#if LIBCDIO_VERSION_NUM >= 90 cdio_cddap_free_messages(s_err); -#else - free(s_err); -#endif } throw; diff --git a/src/input/plugins/meson.build b/src/input/plugins/meson.build index 5fc2f122b..cf866a0ee 100644 --- a/src/input/plugins/meson.build +++ b/src/input/plugins/meson.build @@ -6,7 +6,7 @@ if alsa_dep.found() input_plugins_sources += 'AlsaInputPlugin.cxx' endif -libcdio_paranoia_dep = dependency('libcdio_paranoia', version: '>= 0.4', required: get_option('cdio_paranoia')) +libcdio_paranoia_dep = dependency('libcdio_paranoia', version: '>= 10.2+0.93+1', required: get_option('cdio_paranoia')) conf.set('ENABLE_CDIO_PARANOIA', libcdio_paranoia_dep.found()) if libcdio_paranoia_dep.found() input_plugins_sources += 'CdioParanoiaInputPlugin.cxx' |