rygel r417 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r417 - trunk/src/rygel
- Date: Tue, 13 Jan 2009 14:32:08 +0000 (UTC)
Author: zeeshanak
Date: Tue Jan 13 14:32:08 2009
New Revision: 417
URL: http://svn.gnome.org/viewvc/rygel?rev=417&view=rev
Log:
Allow items to not provide URIs.
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 Tue Jan 13 14:32:08 2009
@@ -123,8 +123,11 @@
/* Add resource data */
/* Protocol info */
- string protocol = get_protocol_for_uri (this.res.uri);
- this.res.protocol = protocol;
+ if (this.res.uri != null) {
+ string protocol = get_protocol_for_uri (this.res.uri);
+ this.res.protocol = protocol;
+ }
+
this.res.dlna_profile = "MP3"; /* FIXME */
if (this.upnp_class == MediaItem.IMAGE_CLASS) {
@@ -144,7 +147,9 @@
}
/* Add the original res in the end */
- didl_writer.add_res (res);
+ if (this.res.uri != null) {
+ didl_writer.add_res (res);
+ }
/* End of item */
didl_writer.end_item ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]