[PATCH 2/5] [lastfm-albumart] Use the new metadata key system



---
 src/lastfm-albumart/grl-lastfm-albumart.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/lastfm-albumart/grl-lastfm-albumart.c b/src/lastfm-albumart/grl-lastfm-albumart.c
index 11169d1..da808ef 100644
--- a/src/lastfm-albumart/grl-lastfm-albumart.c
+++ b/src/lastfm-albumart/grl-lastfm-albumart.c
@@ -251,11 +251,8 @@ grl_lastfm_albumart_source_key_depends (GrlMetadataSource *source,
                                       NULL);
   }
 
-  switch (key_id) {
-  case GRL_METADATA_KEY_THUMBNAIL:
+  if (key_id == GRL_METADATA_KEY_THUMBNAIL) {
     return deps;
-  default:
-    break;
   }
 
   return  NULL;
@@ -278,7 +275,7 @@ grl_lastfm_albumart_source_resolve (GrlMetadataSource *source,
   /* Check that albumart is requested */
   iter = rs->keys;
   while (iter) {
-    if (POINTER_TO_GRLKEYID (iter->data) == GRL_METADATA_KEY_THUMBNAIL) {
+    if (iter->data == GRL_METADATA_KEY_THUMBNAIL) {
       break;
     } else {
       iter = g_list_next (iter);
-- 
1.7.0.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]