summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@linux.intel.com>2011-03-30 11:36:27 +0100
committerJuan A. Suarez Romero <jasuarez@igalia.com>2011-03-30 15:19:43 +0000
commitf66958993ffa415a2147d3532e7fe316245f12fd (patch)
tree1f82107c0b57806c33c9f8063b3af020cd49ef26
parente19844de848ddf5ab3434c453f31bb81488d3abd (diff)
downloadgrilo-plugins-f66958993ffa415a2147d3532e7fe316245f12fd.tar.gz
tracker: more accurate supported keys
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
-rw-r--r--src/media/tracker/grl-tracker-utils.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/media/tracker/grl-tracker-utils.c b/src/media/tracker/grl-tracker-utils.c
index e4a1205..14eecee 100644
--- a/src/media/tracker/grl-tracker-utils.c
+++ b/src/media/tracker/grl-tracker-utils.c
@@ -615,6 +615,11 @@ grl_tracker_get_media_name (const gchar *rdf_type,
const GList *
grl_tracker_supported_keys (GrlMetadataSource *source)
{
- return
- grl_plugin_registry_get_metadata_keys (grl_plugin_registry_get_default ());
+ static GList *supported_keys = NULL;
+
+ if (!supported_keys) {
+ supported_keys = g_hash_table_get_keys (grl_to_sparql_mapping);
+ }
+
+ return supported_keys;
}