[rygel] core: Apply Xbox hacks on Philips DLNA TV
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Apply Xbox hacks on Philips DLNA TV
- Date: Wed, 9 Mar 2011 15:26:58 +0000 (UTC)
commit 905c9e89a1a4262f7337abcd175c32f10ec8ae65
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Mar 7 19:36:01 2011 +0200
core: Apply Xbox hacks on Philips DLNA TV
Seems Philips TV doesn't add anything to 'user-agent' header so we
are forced to apply the hack on all devices that uses that same DLNA
stack: Allegro Software WebClient.
src/rygel/rygel-xbox-hacks.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-xbox-hacks.vala b/src/rygel/rygel-xbox-hacks.vala
index 8ff47c5..9b75e30 100644
--- a/src/rygel/rygel-xbox-hacks.vala
+++ b/src/rygel/rygel-xbox-hacks.vala
@@ -29,7 +29,7 @@ internal errordomain Rygel.XBoxHacksError {
}
internal class Rygel.XBoxHacks : GLib.Object {
- private static string AGENT = ".*Xbox.*";
+ private static string AGENT = ".*Xbox.*|.*Allegro-Software-WebClient.*";
private static string DMS = "urn:schemas-upnp-org:device:MediaServer";
private static string DMS_V1 = DMS + ":1";
private static string FRIENDLY_NAME_POSTFIX =
@@ -38,7 +38,8 @@ internal class Rygel.XBoxHacks : GLib.Object {
public XBoxHacks.for_action (ServiceAction action) throws XBoxHacksError {
var agent = action.get_message ().request_headers.get_one ("User-Agent");
- if (!agent.contains ("Xbox")) {
+ if (!(agent.contains ("Xbox") &&
+ agent.contains ("Allegro-Software-WebClient"))) {
throw new XBoxHacksError.NA (_("Not Applicable"));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]