[PATCH 1/2] tracker: fix bug in tracker event processing



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

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

diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index 3f11ed1..35354c4 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -321,6 +321,8 @@ tracker_evt_update_process_item_cb (GObject              *object,
                              NULL);
       grl_tracker_add_source (GRL_TRACKER_SOURCE (plugin));
       g_free (source_name);
+    } else {
+      GRL_DEBUG ("\tChanges on source %p / %s", plugin, datasource);
     }
   } else if (!source_mounted && plugin != NULL) {
     grl_tracker_del_source (GRL_TRACKER_SOURCE (plugin));
@@ -363,8 +365,9 @@ tracker_evt_update_process (tracker_evt_update_t *evt)
 
   GRL_DEBUG ("%s", __FUNCTION__);
 
+  evt->updated_items_iter = evt->updated_items_list;
   g_string_append_printf (request_str, "%i",
-                          GPOINTER_TO_INT (evt->updated_items_iter));
+                          GPOINTER_TO_INT (evt->updated_items_iter->data));
   evt->updated_items_iter = evt->updated_items_iter->next;
 
   while (evt->updated_items_iter != NULL) {
@@ -425,6 +428,7 @@ tracker_dbus_signal_cb (GDBusConnection *connection,
   }
   g_variant_iter_free (iter1);
 
+
   while (g_variant_iter_loop (iter2, "(iiii)", &graph,
                               &subject, &predicate, &object)) {
     subject_state = GPOINTER_TO_INT (g_hash_table_lookup (evt->updated_items,
-- 
1.7.2.3



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