rygel r655 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r655 - trunk/src/rygel
- Date: Sun, 15 Mar 2009 19:00:51 +0000 (UTC)
Author: zeeshanak
Date: Sun Mar 15 19:00:51 2009
New Revision: 655
URL: http://svn.gnome.org/viewvc/rygel?rev=655&view=rev
Log:
Put transcoding target mime to http uri rather than a boolean.
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:00:51 2009
@@ -66,13 +66,13 @@
}
// Create the HTTP proxy URI
- var uri = this.create_http_uri_for_item (item, false);
+ var uri = this.create_http_uri_for_item (item, null);
DIDLLiteResource res = item.create_res (uri);
res.protocol = "http-get";
resources.add (res);
// Create the HTTP transcode URI
- uri = this.create_http_uri_for_item (item, true);
+ uri = this.create_http_uri_for_item (item, "video/mpeg");
res = item.create_res (uri);
res.protocol = "http-get";
resources.add (res);
@@ -110,11 +110,13 @@
path);
}
- private string create_http_uri_for_item (MediaItem item, bool transcode) {
+ private string create_http_uri_for_item (MediaItem item,
+ string? transcode_target) {
string escaped = Uri.escape_string (item.id, "", true);
- string query = "?itemid=%s&transcode=%s".printf (
- escaped,
- transcode.to_string ());
+ string query = "?itemid=%s".printf (escaped);
+ if (transcode_target != null) {
+ query = "%s&transcode=%s".printf (query, transcode_target);
+ }
return create_uri_for_path (query);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]