From 1191aff5c77ba1f5698efa95dd438c1e67ba9972 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Tue, 19 Jan 2010 17:00:37 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.7.4