[rygel] core: Let PS3 seek into unseekable
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Let PS3 seek into unseekable
- Date: Sun, 8 Aug 2010 23:19:42 +0000 (UTC)
commit 489ae5850ebeaa858e6c33d01afdf31c838587fa
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Aug 9 02:10:24 2010 +0300
core: Let PS3 seek into unseekable
If PS3 wants to send a (totally unneeded) seek request for a resource that
is not seekable, let it!
src/rygel/rygel-http-byte-seek.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-byte-seek.vala b/src/rygel/rygel-http-byte-seek.vala
index cafaee6..39f6073 100644
--- a/src/rygel/rygel-http-byte-seek.vala
+++ b/src/rygel/rygel-http-byte-seek.vala
@@ -83,7 +83,10 @@ internal class Rygel.HTTPByteSeek : Rygel.HTTPSeek {
(request.thumbnail != null && request.thumbnail.size > 0) ||
(request.subtitle != null && request.subtitle.size > 0);
- if (!needed && request.msg.request_headers.get ("Range") != null) {
+ var range = request.msg.request_headers.get ("Range");
+ var agent = request.msg.request_headers.get ("User-Agent");
+
+ if (!needed && range != null && agent != "PLAYSTATION 3") {
throw new HTTPRequestError.UNACCEPTABLE ("Invalid seek request");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]