summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIago Toral Quiroga <itoral@igalia.com>2010-03-12 08:51:52 +0100
committerIago Toral Quiroga <itoral@igalia.com>2010-03-12 08:51:52 +0100
commitb01908ba3741696f4460c36fe4ca2dc84622869f (patch)
tree8305a35b8a68f40e65f58f684d68c427565ae15d
parent8404761ad9afd5505b3c65626c1c3fa5f1fcd28e (diff)
downloadgrilo-b01908ba3741696f4460c36fe4ca2dc84622869f.tar.gz
[core] Use grl_plugin_registry_get_sources_by_capabilities() instead
of checking for virtual method implementations directly.
-rw-r--r--src/grl-metadata-source.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/grl-metadata-source.c b/src/grl-metadata-source.c
index 29e7203..1c42473 100644
--- a/src/grl-metadata-source.c
+++ b/src/grl-metadata-source.c
@@ -831,7 +831,9 @@ grl_metadata_source_setup_full_resolution_mode (GrlMetadataSource *source,
GrlPluginRegistry *registry;
registry = grl_plugin_registry_get_instance ();
- source_list = grl_plugin_registry_get_sources (registry, TRUE);
+ source_list = grl_plugin_registry_get_sources_by_capabilities (registry,
+ GRL_OP_RESOLVE,
+ TRUE);
while (*source_list && key_list) {
gchar *name;
@@ -845,14 +847,6 @@ grl_metadata_source_setup_full_resolution_mode (GrlMetadataSource *source,
continue;
}
- /* Interested in sources capable of resolving metadata
- based on other metadata */
- GrlMetadataSourceClass *_source_class =
- GRL_METADATA_SOURCE_GET_CLASS (_source);
- if (!_source_class->resolve) {
- continue;
- }
-
/* Check if this source supports some of the missing keys */
g_object_get (_source, "source-name", &name, NULL);
g_debug ("Checking resolution capabilities for source '%s'", name);