From 805d6210b34edd9a21bf034e5989ea60d4af1a98 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 30 Aug 2012 18:10:55 +0100 Subject: [PATCH] Add missing patch --- 0001-libsushi-Port-to-libmusicbrainz5.patch | 97 +++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 0001-libsushi-Port-to-libmusicbrainz5.patch diff --git a/0001-libsushi-Port-to-libmusicbrainz5.patch b/0001-libsushi-Port-to-libmusicbrainz5.patch new file mode 100644 index 0000000..1f18bad --- /dev/null +++ b/0001-libsushi-Port-to-libmusicbrainz5.patch @@ -0,0 +1,97 @@ +From 8a7ed88b5b91226bb3511ee8d41c6caf98bf92ef Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Thu, 30 Aug 2012 14:52:15 +0100 +Subject: [PATCH] libsushi: Port to libmusicbrainz5 + +https://bugzilla.gnome.org/show_bug.cgi?id=683033 +--- + configure.ac | 2 +- + src/libsushi/sushi-cover-art.c | 26 +++++++++++++------------- + 2 files changed, 14 insertions(+), 14 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 9cd1c24..d9d4e87 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -72,7 +72,7 @@ PKG_CHECK_MODULES(SUSHI, + gstreamer-1.0 + gstreamer-pbutils-1.0 + gstreamer-tag-1.0 +- libmusicbrainz4 ++ libmusicbrainz5 + evince-document-3.0 + evince-view-3.0 + gtksourceview-3.0 +diff --git a/src/libsushi/sushi-cover-art.c b/src/libsushi/sushi-cover-art.c +index cd5922e..ab90f1a 100644 +--- a/src/libsushi/sushi-cover-art.c ++++ b/src/libsushi/sushi-cover-art.c +@@ -27,7 +27,7 @@ + + #include "sushi-cover-art.h" + +-#include ++#include + #include + + G_DEFINE_TYPE (SushiCoverArtFetcher, sushi_cover_art_fetcher, G_TYPE_OBJECT); +@@ -212,15 +212,15 @@ fetch_uri_job (GIOSchedulerJob *sched_job, + gpointer user_data) + { + FetchUriJob *job = user_data; +- Mb4Metadata metadata; +- Mb4Query query; +- Mb4Release release; +- Mb4ReleaseList release_list; ++ Mb5Metadata metadata; ++ Mb5Query query; ++ Mb5Release release; ++ Mb5ReleaseList release_list; + gchar *retval = NULL; + gchar **param_names = NULL; + gchar **param_values = NULL; + +- query = mb4_query_new ("sushi", NULL, 0); ++ query = mb5_query_new ("sushi", NULL, 0); + + param_names = g_new (gchar*, 3); + param_values = g_new (gchar*, 3); +@@ -234,20 +234,20 @@ fetch_uri_job (GIOSchedulerJob *sched_job, + param_names[2] = NULL; + param_values[2] = NULL; + +- metadata = mb4_query_query (query, "release", "", "", ++ metadata = mb5_query_query (query, "release", "", "", + 2, param_names, param_values); + +- mb4_query_delete (query); ++ mb5_query_delete (query); + + if (metadata) { +- release_list = mb4_metadata_get_releaselist (metadata); ++ release_list = mb5_metadata_get_releaselist (metadata); + int i; +- int release_list_length = mb4_release_list_size (release_list); ++ int release_list_length = mb5_release_list_size (release_list); + for (i = 0; i < release_list_length; i++) { + gchar asin[255]; + +- release = mb4_release_list_item (release_list, i); +- mb4_release_get_asin (release, asin, 255); ++ release = mb5_release_list_item (release_list, i); ++ mb5_release_get_asin (release, asin, 255); + + if (asin != NULL && + asin[0] != '\0') { +@@ -256,7 +256,7 @@ fetch_uri_job (GIOSchedulerJob *sched_job, + } + } + } +- mb4_metadata_delete (metadata); ++ mb5_metadata_delete (metadata); + + if (retval == NULL) { + /* FIXME: do we need a better error? */ +-- +1.7.11.2 +