[grilo-plugins] lastfm-albumart: adapt to the new GrlKeyID type
- From: Guillaume Jérôme Emont <guijemont src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [grilo-plugins] lastfm-albumart: adapt to the new GrlKeyID type
 
- Date: Mon, 16 May 2011 10:25:50 +0000 (UTC)
 
commit b507550411dfdb3dc0355a341c41fa591a1fb3c1
Author: Guillaume Emont <guijemont igalia com>
Date:   Wed May 4 13:18:20 2011 +0200
    lastfm-albumart: adapt to the new GrlKeyID type
 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);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]