tracker: Set empty DLNA profile when creating item
authorJens Georg <mail@jensge.org>
Wed, 26 Oct 2011 16:41:05 +0000 (18:41 +0200)
committerJens Georg <mail@jensge.org>
Wed, 26 Oct 2011 16:41:05 +0000 (18:41 +0200)
This fixes DLNA item 7.3.134.4,8 when rygel runs with strict sharing
enabled.

src/plugins/tracker/rygel-tracker-insertion-query.vala

index 05c1e1a..c5e89d3 100644 (file)
@@ -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",