[rygel] core: Provide duration to HTTPSeek.add_response_header
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Provide duration to HTTPSeek.add_response_header
- Date: Thu, 1 Oct 2009 22:12:58 +0000 (UTC)
commit b1b96dc9f05137021bb07fbfb1f586b14381076c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Oct 2 01:05:09 2009 +0300
core: Provide duration to HTTPSeek.add_response_header
src/rygel/rygel-http-identity-handler.vala | 3 ++-
src/rygel/rygel-http-seek.vala | 2 +-
src/rygel/rygel-http-transcode-handler.vala | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-http-identity-handler.vala b/src/rygel/rygel-http-identity-handler.vala
index bf3bcbe..5ff12f6 100644
--- a/src/rygel/rygel-http-identity-handler.vala
+++ b/src/rygel/rygel-http-identity-handler.vala
@@ -50,7 +50,8 @@ internal class Rygel.HTTPIdentityHandler : Rygel.HTTPRequestHandler {
if (request.thumbnail == null && request.item.should_stream ()) {
if (request.time_range != null) {
- request.time_range.add_response_header (request.msg);
+ request.time_range.add_response_header (request.msg,
+ request.item.duration);
}
} else {
request.msg.response_headers.append ("Accept-Ranges", "bytes");
diff --git a/src/rygel/rygel-http-seek.vala b/src/rygel/rygel-http-seek.vala
index b0d322a..f08e0f6 100644
--- a/src/rygel/rygel-http-seek.vala
+++ b/src/rygel/rygel-http-seek.vala
@@ -143,7 +143,7 @@ internal class Rygel.HTTPSeek : GLib.Object {
return new HTTPSeek (Format.TIME, start, stop);
}
- public void add_response_header (Soup.Message msg, int64 length=-1) {
+ public void add_response_header (Soup.Message msg, int64 length) {
string header;
string value;
double start = 0;
diff --git a/src/rygel/rygel-http-transcode-handler.vala b/src/rygel/rygel-http-transcode-handler.vala
index 92c4891..782994f 100644
--- a/src/rygel/rygel-http-transcode-handler.vala
+++ b/src/rygel/rygel-http-transcode-handler.vala
@@ -41,7 +41,8 @@ internal class Rygel.HTTPTranscodeHandler : HTTPRequestHandler {
request.msg.response_headers.append ("Content-Type",
this.transcoder.mime_type);
if (request.time_range != null) {
- request.time_range.add_response_header (request.msg);
+ request.time_range.add_response_header (request.msg,
+ request.item.duration);
}
// Chain-up
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]