[PATCH 4/6] lastfm-albumart: adapt to the new GrlKeyID type
- From: Guillaume Emont <guijemont igalia com>
- To: grilo-list gnome org
- Cc: Guillaume Emont <guijemont igalia com>
- Subject: [PATCH 4/6] lastfm-albumart: adapt to the new GrlKeyID type
- Date: Wed, 4 May 2011 19:20:43 +0200
---
src/metadata/lastfm-albumart/grl-lastfm-albumart.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/metadata/lastfm-albumart/grl-lastfm-albumart.c b/src/metadata/lastfm-albumart/grl-lastfm-albumart.c
index 4c802a1..0ca8cc1 100644
--- a/src/metadata/lastfm-albumart/grl-lastfm-albumart.c
+++ b/src/metadata/lastfm-albumart/grl-lastfm-albumart.c
@@ -330,9 +330,11 @@ grl_lastfm_albumart_source_may_resolve (GrlMetadataSource *source,
if (missing_keys) {
GList *result = NULL;
if (!have_artist)
- result = g_list_append (result, GRL_METADATA_KEY_ARTIST);
+ result =
+ g_list_append (result, GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ARTIST));
if (!have_album)
- result = g_list_append (result, GRL_METADATA_KEY_ALBUM);
+ result =
+ g_list_append (result, GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ALBUM));
if (result)
*missing_keys = result;
@@ -358,7 +360,8 @@ grl_lastfm_albumart_source_resolve (GrlMetadataSource *source,
/* Check that albumart is requested */
iter = rs->keys;
while (iter) {
- if (iter->data == GRL_METADATA_KEY_THUMBNAIL) {
+ GrlKeyID key = GRLPOINTER_TO_KEYID (iter->data);
+ if (key == GRL_METADATA_KEY_THUMBNAIL) {
break;
} else {
iter = g_list_next (iter);
--
1.7.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]