rygel r414 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r414 - trunk/src/rygel
- Date: Wed, 7 Jan 2009 12:56:04 +0000 (UTC)
Author: zeeshanak
Date: Wed Jan 7 12:56:04 2009
New Revision: 414
URL: http://svn.gnome.org/viewvc/rygel?rev=414&view=rev
Log:
Stream needs to know if it's accepted for a partial download.
Modified:
trunk/src/rygel/rygel-stream.vala
Modified: trunk/src/rygel/rygel-stream.vala
==============================================================================
--- trunk/src/rygel/rygel-stream.vala (original)
+++ trunk/src/rygel/rygel-stream.vala Wed Jan 7 12:56:04 2009
@@ -46,8 +46,12 @@
this.eos ();
}
- public void accept () {
- this.msg.set_status (Soup.KnownStatusCode.OK);
+ public void accept (bool partial) {
+ if (partial) {
+ this.msg.set_status (Soup.KnownStatusCode.PARTIAL_CONTENT);
+ } else {
+ this.msg.set_status (Soup.KnownStatusCode.OK);
+ }
this.msg.response_body.set_accumulate (false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]