[rygel] tracker: Set empty DLNA profile when creating item
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] tracker: Set empty DLNA profile when creating item
- Date: Wed, 26 Oct 2011 16:42:15 +0000 (UTC)
commit 667fd1e8e598e55c75c2b188287eccf4482768c6
Author: Jens Georg <mail jensge org>
Date: Wed Oct 26 18:41:05 2011 +0200
tracker: Set empty DLNA profile when creating item
This fixes DLNA item 7.3.134.4,8 when rygel runs with strict sharing
enabled.
.../tracker/rygel-tracker-insertion-query.vala | 9 ++++++---
1 files 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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]