[rygel] core: Correct condition for byte-seeking
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Correct condition for byte-seeking
- Date: Tue, 19 Jan 2010 15:04:29 +0000 (UTC)
commit 1191aff5c77ba1f5698efa95dd438c1e67ba9972
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Jan 19 17:00:37 2010 +0200
core: Correct condition for byte-seeking
We were trying to byte-seek even in case of transcoding.
src/rygel/rygel-http-byte-seek.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-byte-seek.vala b/src/rygel/rygel-http-byte-seek.vala
index dd5b716..a1727dc 100644
--- a/src/rygel/rygel-http-byte-seek.vala
+++ b/src/rygel/rygel-http-byte-seek.vala
@@ -78,7 +78,8 @@ internal class Rygel.HTTPByteSeek : Rygel.HTTPSeek {
}
public static bool needed (HTTPRequest request) {
- return request.item.size > 0 ||
+ return (request.item.size > 0 &&
+ request.handler is HTTPIdentityHandler) ||
(request.thumbnail != null && request.thumbnail.size > 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]