rygel r658 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r658 - trunk/src/rygel
- Date: Sun, 15 Mar 2009 19:01:04 +0000 (UTC)
Author: zeeshanak
Date: Sun Mar 15 19:01:04 2009
New Revision: 658
URL: http://svn.gnome.org/viewvc/rygel?rev=658&view=rev
Log:
Don't create transcoding resource for images.
Modified:
trunk/src/rygel/rygel-http-server.vala
Modified: trunk/src/rygel/rygel-http-server.vala
==============================================================================
--- trunk/src/rygel/rygel-http-server.vala (original)
+++ trunk/src/rygel/rygel-http-server.vala Sun Mar 15 19:01:04 2009
@@ -72,14 +72,19 @@
resources.add (res);
- // Modify the res for transcoding resources
- res.mime_type = "video/mpeg";
- res.uri = this.create_http_uri_for_item (item, res.mime_type);
- res.dlna_flags = DLNAFlags.STREAMING_TRANSFER_MODE;
- res.dlna_operation = DLNAOperation.NONE;
- res.size = -1;
+ if (item.upnp_class.has_prefix (MediaItem.IMAGE_CLASS)) {
+ // No transcoding for images yet :(
+ return resources;
+ } else {
+ // Modify the res for transcoding resources
+ res.mime_type = "video/mpeg";
+ res.uri = this.create_http_uri_for_item (item, res.mime_type);
+ res.dlna_flags = DLNAFlags.STREAMING_TRANSFER_MODE;
+ res.dlna_operation = DLNAOperation.NONE;
+ res.size = -1;
- resources.add (res);
+ resources.add (res);
+ }
return resources;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]