[grilo-plugins] [lastfm-albumart] Use the new metadata key system
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] [lastfm-albumart] Use the new metadata key system
- Date: Wed, 9 Jun 2010 11:52:09 +0000 (UTC)
commit b7cfbf65c4fc25cd1fdbaaa4acdbb8bc61592655
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Mon Jun 7 10:59:01 2010 +0200
[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 2a19bf4..29c5193 100644
--- a/src/lastfm-albumart/grl-lastfm-albumart.c
+++ b/src/lastfm-albumart/grl-lastfm-albumart.c
@@ -253,11 +253,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;
@@ -280,7 +277,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]