[rygel] media-export: Set dlna_profile on MediaExportItem
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Set dlna_profile on MediaExportItem
- Date: Wed, 21 Jul 2010 19:24:55 +0000 (UTC)
commit 679d228771f74457a52398c05e5ff9c40baf9c7b
Author: Arun Raghavan <arun raghavan collabora co uk>
Date: Wed Jul 21 14:45:58 2010 +0100
media-export: Set dlna_profile on MediaExportItem
Now that we have a DLNA profile/mime guessed by GUPnPDLNADiscoverer, we
can start using these if available (the fallback is to use the mime type
detected by glib).
.../media-export/rygel-media-export-item.vala | 4 +++-
.../rygel-media-export-metadata-extractor.vala | 2 ++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-item.vala b/src/plugins/media-export/rygel-media-export-item.vala
index 8c341ec..6f5163b 100644
--- a/src/plugins/media-export/rygel-media-export-item.vala
+++ b/src/plugins/media-export/rygel-media-export-item.vala
@@ -30,6 +30,8 @@ using Gst;
public class Rygel.MediaExport.MediaExportItem : Rygel.MediaItem {
private const string TAG_WIDTH = MetadataExtractor.TAG_RYGEL_WIDTH;
private const string TAG_HEIGHT = MetadataExtractor.TAG_RYGEL_HEIGHT;
+ private const string
+ TAG_DLNA_PROFILE = MetadataExtractor.TAG_RYGEL_DLNA_PROFILE;
public static MediaExportItem? create_from_taglist (MediaContainer parent,
File file,
@@ -169,7 +171,7 @@ public class Rygel.MediaExport.MediaExportItem : Rygel.MediaItem {
this.date = tv.to_iso8601 ();
}
-
+ tag_list.get_string (TAG_DLNA_PROFILE, out this.dlna_profile);
tag_list.get_string (MetadataExtractor.TAG_RYGEL_MIME,
out this.mime_type);
diff --git a/src/plugins/media-export/rygel-media-export-metadata-extractor.vala b/src/plugins/media-export/rygel-media-export-metadata-extractor.vala
index 6e24de4..0263f73 100644
--- a/src/plugins/media-export/rygel-media-export-metadata-extractor.vala
+++ b/src/plugins/media-export/rygel-media-export-metadata-extractor.vala
@@ -41,6 +41,7 @@ public class Rygel.MediaExport.MetadataExtractor: GLib.Object {
public const string TAG_RYGEL_HEIGHT = "rygel-height";
public const string TAG_RYGEL_DEPTH = "rygel-depth";
public const string TAG_RYGEL_MTIME = "rygel-mtime";
+ public const string TAG_RYGEL_DLNA_PROFILE = "rygel-dlna-profile";
/* Signals */
public signal void extraction_done (File file, Gst.TagList tag_list);
@@ -81,6 +82,7 @@ public class Rygel.MediaExport.MetadataExtractor: GLib.Object {
this.register_custom_tag (TAG_RYGEL_HEIGHT, typeof (int));
this.register_custom_tag (TAG_RYGEL_DEPTH, typeof (int));
this.register_custom_tag (TAG_RYGEL_MTIME, typeof (uint64));
+ this.register_custom_tag (TAG_RYGEL_DLNA_PROFILE, typeof (string));
this.file_hash = new HashMap<string, File> ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]