[rygel] core: Correctly mark partial responses as such
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Correctly mark partial responses as such
- Date: Thu, 7 Apr 2011 23:22:29 +0000 (UTC)
commit fb7cba3b92be8e99380e09fa1614e66578568bb2
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Apr 4 22:41:38 2011 +0300
core: Correctly mark partial responses as such
src/rygel/rygel-http-gst-response.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-gst-response.vala b/src/rygel/rygel-http-gst-response.vala
index e75a8cd..df48838 100644
--- a/src/rygel/rygel-http-gst-response.vala
+++ b/src/rygel/rygel-http-gst-response.vala
@@ -33,7 +33,10 @@ internal class Rygel.HTTPGstResponse : Rygel.HTTPResponse {
public HTTPGstResponse (HTTPGet request,
HTTPGetHandler request_handler,
Element src) throws Error {
- base (request, request_handler, false);
+ var partial = (request.seek != null &&
+ request.seek.length < request.seek.total_length);
+
+ base (request, request_handler, partial);
this.seek = request.seek;
this.prepare_pipeline ("RygelHTTPGstResponse", src);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]