rygel r412 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r412 - trunk/src/rygel
- Date: Wed, 7 Jan 2009 12:55:56 +0000 (UTC)
Author: zeeshanak
Date: Wed Jan 7 12:55:55 2009
New Revision: 412
URL: http://svn.gnome.org/viewvc/rygel?rev=412&view=rev
Log:
Mark image items as 'interactive' in the DIDL.
Modified:
trunk/src/rygel/rygel-media-item.vala
Modified: trunk/src/rygel/rygel-media-item.vala
==============================================================================
--- trunk/src/rygel/rygel-media-item.vala (original)
+++ trunk/src/rygel/rygel-media-item.vala Wed Jan 7 12:55:55 2009
@@ -128,8 +128,13 @@
string protocol = get_protocol_for_uri (this.res.uri);
this.res.protocol = protocol;
this.res.dlna_profile = "MP3"; /* FIXME */
- this.res.dlna_flags = GUPnP.DLNAFlags.STREAMING_TRANSFER_MODE |
- GUPnP.DLNAFlags.DLNA_V15;
+
+ if (this.upnp_class == MediaItem.IMAGE_CLASS) {
+ this.res.dlna_flags |= GUPnP.DLNAFlags.INTERACTIVE_TRANSFER_MODE;
+ } else {
+ this.res.dlna_flags |= GUPnP.DLNAFlags.STREAMING_TRANSFER_MODE;
+ }
+
if (!this.live) {
this.res.dlna_operation = GUPnP.DLNAOperation.RANGE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]