[PATCH 01/17] tracker: switch to tracker:id as Grilo key id instead of URN



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

This will allow optimization during notification process

Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
 src/media/tracker/grl-tracker.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/media/tracker/grl-tracker.c b/src/media/tracker/grl-tracker.c
index b07627f..809d789 100644
--- a/src/media/tracker/grl-tracker.c
+++ b/src/media/tracker/grl-tracker.c
@@ -137,9 +137,9 @@ enum {
   "OFFSET %i "                                                          \
   "LIMIT %i"
 
-#define TRACKER_METADATA_REQUEST                                    \
-  "SELECT %s "							    \
-  "WHERE { ?urn a nie:DataObject . FILTER (?urn = <%s>) }"
+#define TRACKER_METADATA_REQUEST					\
+  "SELECT %s "								\
+  "WHERE { ?urn a nie:DataObject . FILTER (tracker:id(?urn) = %s) }"
 
 typedef struct {
   GrlKeyID     grl_key;
@@ -852,7 +852,7 @@ setup_key_mappings (void)
                       "video");
 
   insert_key_mapping (GRL_METADATA_KEY_ID,
-                      "?urn",
+                      "tracker:id(?urn)",
                       "file");
 
   insert_key_mapping (GRL_METADATA_KEY_LAST_PLAYED,
-- 
1.7.4.1



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