[PATCH 5/8] tracker: give a different id to each source



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

Otherwise the plugin registry won't accept the source.

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

diff --git a/src/media/tracker/grl-tracker-media.c b/src/media/tracker/grl-tracker-media.c
index e927c88..4118b95 100644
--- a/src/media/tracker/grl-tracker-media.c
+++ b/src/media/tracker/grl-tracker-media.c
@@ -342,7 +342,7 @@ tracker_get_datasource_cb (GObject             *object,
     GRL_DEBUG ("\tnew datasource: urn=%s name=%s uri=%s => name=%s\n",
 	       datasource, datasource_name, uri, source_name);
     source = g_object_new (GRL_TRACKER_MEDIA_TYPE,
-                           "source-id", GRL_TRACKER_MEDIA_ID,
+                           "source-id", datasource,
                            "source-name", source_name,
                            "source-desc", GRL_TRACKER_MEDIA_DESC,
                            "tracker-connection", grl_tracker_connection,
-- 
1.7.4.1



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