[rygel] core: Fix condition for partial content transfer
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Fix condition for partial content transfer
- Date: Tue, 5 Jan 2010 17:51:32 +0000 (UTC)
commit 94a9c3a47f44d5d64acf962d8c401bc9115de1ae
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Jan 5 19:50:46 2010 +0200
core: Fix condition for partial content transfer
src/rygel/rygel-seekable-response.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-seekable-response.vala b/src/rygel/rygel-seekable-response.vala
index 5d7cb2c..cab3353 100644
--- a/src/rygel/rygel-seekable-response.vala
+++ b/src/rygel/rygel-seekable-response.vala
@@ -42,7 +42,9 @@ internal class Rygel.SeekableResponse : Rygel.HTTPResponse {
HTTPSeek? seek,
size_t file_length,
Cancellable? cancellable) {
- base (server, msg, seek != null, cancellable);
+ var partial = seek != null && seek.length < file_length;
+
+ base (server, msg, partial, cancellable);
this.seek = seek;
this.total_length = file_length;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]