From 667fd1e8e598e55c75c2b188287eccf4482768c6 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Wed, 26 Oct 2011 18:41:05 +0200 Subject: [PATCH] tracker: Set empty DLNA profile when creating item This fixes DLNA item 7.3.134.4,8 when rygel runs with strict sharing enabled. --- src/plugins/tracker/rygel-tracker-insertion-query.vala | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/tracker/rygel-tracker-insertion-query.vala b/src/plugins/tracker/rygel-tracker-insertion-query.vala index 05c1e1a..c5e89d3 100644 --- a/src/plugins/tracker/rygel-tracker-insertion-query.vala +++ b/src/plugins/tracker/rygel-tracker-insertion-query.vala @@ -77,13 +77,16 @@ public class Rygel.Tracker.InsertionQuery : Query { QUERY_ID, "nie:mimeType", "\"" + item.mime_type + "\"")); + var dlna_profile = ""; if (item.dlna_profile != null) { - triplets.add (new QueryTriplet.with_graph + dlna_profile = item.dlna_profile; + } + + triplets.add (new QueryTriplet.with_graph (MINER_GRAPH, QUERY_ID, "nmm:dlnaProfile", - "\"" + item.dlna_profile + "\"")); - } + "\"" + dlna_profile + "\"")); triplets.add (new QueryTriplet (QUERY_ID, "nie:url", -- 2.7.4