[rygel] tracker: Provide DLNA profile when available
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] tracker: Provide DLNA profile when available
- Date: Thu, 12 Aug 2010 16:08:06 +0000 (UTC)
commit 3b21bf3ede12afac7e24f9fccfeb2c804ea25e13
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Aug 12 19:07:25 2010 +0300
tracker: Provide DLNA profile when available
.../tracker/rygel-tracker-item-factory.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-item-factory.vala b/src/plugins/tracker/rygel-tracker-item-factory.vala
index 59f97c2..ea772e7 100644
--- a/src/plugins/tracker/rygel-tracker-item-factory.vala
+++ b/src/plugins/tracker/rygel-tracker-item-factory.vala
@@ -30,6 +30,7 @@ public abstract class Rygel.Tracker.ItemFactory {
protected enum Metadata {
FILE_NAME,
TITLE,
+ DLNA_PROFILE,
MIME,
SIZE,
DATE,
@@ -61,6 +62,7 @@ public abstract class Rygel.Tracker.ItemFactory {
this.key_chains[Metadata.FILE_NAME].add ("nfo:fileName");
this.key_chains[Metadata.TITLE].add ("nie:title");
+ this.key_chains[Metadata.DLNA_PROFILE].add ("nmm:dlnaProfile");
this.key_chains[Metadata.MIME].add ("nie:mimeType");
this.key_chains[Metadata.SIZE].add ("nfo:fileSize");
this.key_chains[Metadata.DATE].add ("nie:contentCreated");
@@ -85,6 +87,9 @@ public abstract class Rygel.Tracker.ItemFactory {
if (metadata[Metadata.DATE] != "")
item.date = metadata[Metadata.DATE];
+ if (metadata[Metadata.DLNA_PROFILE] != "")
+ item.dlna_profile = metadata[Metadata.DLNA_PROFILE];
+
item.mime_type = metadata[Metadata.MIME];
item.add_uri (uri, null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]