summaryrefslogtreecommitdiff
path: root/libre/clementine/clementine-1.3.1-chromaprint-1.4.0.patch
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-04-11 17:04:20 +0200
committerAndreas Grapentin <andreas@grapentin.org>2019-04-11 17:04:20 +0200
commitf2df8e7137d1c81e07e5a01cb110b62516602d42 (patch)
treea15f2956e6a2b540678fce501d2a312cfbf468b8 /libre/clementine/clementine-1.3.1-chromaprint-1.4.0.patch
parent8aee0f2122c3541caae6c3d1c89df3212573ba90 (diff)
downloadabslibre-f2df8e7137d1c81e07e5a01cb110b62516602d42.tar.gz
abslibre-f2df8e7137d1c81e07e5a01cb110b62516602d42.tar.bz2
abslibre-f2df8e7137d1c81e07e5a01cb110b62516602d42.zip
libre/clementine: rebuilt
Diffstat (limited to 'libre/clementine/clementine-1.3.1-chromaprint-1.4.0.patch')
-rw-r--r--libre/clementine/clementine-1.3.1-chromaprint-1.4.0.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/libre/clementine/clementine-1.3.1-chromaprint-1.4.0.patch b/libre/clementine/clementine-1.3.1-chromaprint-1.4.0.patch
deleted file mode 100644
index 099704026..000000000
--- a/libre/clementine/clementine-1.3.1-chromaprint-1.4.0.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From ded312685735fc266d4154d355286eeb86db3bcd Mon Sep 17 00:00:00 2001
-From: Chocobozzz <florian.bigard@gmail.com>
-Date: Thu, 8 Dec 2016 23:12:17 +0100
-Subject: [PATCH] Add compatibility with chromaprint >= 1.4
-
----
- src/musicbrainz/chromaprinter.cpp | 14 +++++++++++---
- 1 file changed, 11 insertions(+), 3 deletions(-)
-
-diff --git a/src/musicbrainz/chromaprinter.cpp b/src/musicbrainz/chromaprinter.cpp
-index 9579b62ae..c7ad99e2e 100644
---- a/src/musicbrainz/chromaprinter.cpp
-+++ b/src/musicbrainz/chromaprinter.cpp
-@@ -143,16 +143,24 @@ QString Chromaprinter::CreateFingerprint() {
- ChromaprintContext* chromaprint =
- chromaprint_new(CHROMAPRINT_ALGORITHM_DEFAULT);
- chromaprint_start(chromaprint, kDecodeRate, kDecodeChannels);
-- chromaprint_feed(chromaprint, reinterpret_cast<void*>(data.data()),
-+ chromaprint_feed(chromaprint, reinterpret_cast<int16_t *>(data.data()),
- data.size() / 2);
- chromaprint_finish(chromaprint);
-
-- void* fprint = nullptr;
- int size = 0;
-+
-+#if CHROMAPRINT_VERSION_MAJOR >= 1 && CHROMAPRINT_VERSION_MINOR >= 4
-+ u_int32_t *fprint = nullptr;
-+ char *encoded = nullptr;
-+#else
-+ void *fprint = nullptr;
-+ void *encoded = nullptr;
-+#endif
-+
- int ret = chromaprint_get_raw_fingerprint(chromaprint, &fprint, &size);
-+
- QByteArray fingerprint;
- if (ret == 1) {
-- void* encoded = nullptr;
- int encoded_size = 0;
- chromaprint_encode_fingerprint(fprint, size, CHROMAPRINT_ALGORITHM_DEFAULT,
- &encoded, &encoded_size, 1);