[PATCH 8/8] tracker: more accurate supported keys
- From: lionel g landwerlin linux intel com
- To: grilo-list gnome org
- Subject: [PATCH 8/8] tracker: more accurate supported keys
- Date: Wed, 30 Mar 2011 11:36:27 +0100
From: Lionel Landwerlin <lionel g landwerlin linux intel com>
Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
src/media/tracker/grl-tracker-utils.c | 9 +++++++--
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;
}
--
1.7.4.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]