diff options
author | Jens Georg <mail@jensge.org> | 2011-07-27 13:54:29 +0300 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2011-07-27 13:55:58 +0300 |
commit | 987f714c48d430442356b3108c6a17337540f23c (patch) | |
tree | 18203cccef1b64de7cc00a0115648a368466a1c0 | |
parent | 306d070a8b568a93475a1ac01fa4d32574a5731f (diff) | |
download | rygel-0-10.tar.gz |
core: Apply XBox hacks to Samsung Galaxy S.rygel-0-10
Fixes bgo#629582
Conflicts:
src/rygel/rygel-xbox-hacks.vala
-rw-r--r-- | src/rygel/rygel-xbox-hacks.vala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rygel/rygel-xbox-hacks.vala b/src/rygel/rygel-xbox-hacks.vala index bf8a34a4..869e2336 100644 --- a/src/rygel/rygel-xbox-hacks.vala +++ b/src/rygel/rygel-xbox-hacks.vala @@ -29,7 +29,8 @@ internal errordomain Rygel.XBoxHacksError { } internal class Rygel.XBoxHacks : GLib.Object { - private static string AGENT = ".*Xbox.*|.*Allegro-Software-WebClient.*"; + private static string AGENT = + ".*Xbox.*|.*Allegro-Software-WebClient.*|.*SEC_HHP_Galaxy S/1\\.0.*"; private static string DMS = "urn:schemas-upnp-org:device:MediaServer"; private static string DMS_V1 = DMS + ":1"; private static string FRIENDLY_NAME_POSTFIX = @@ -44,7 +45,8 @@ internal class Rygel.XBoxHacks : GLib.Object { unowned MessageHeaders headers = action.get_message ().request_headers; var agent = headers.get_one ("User-Agent"); if (!(agent.contains ("Xbox")) && - !(agent.contains ("Allegro-Software-WebClient"))) { + !(agent.contains ("Allegro-Software-WebClient")) && + !(agent.contains ("SEC_HHP_Galaxy S/1.0"))) { throw new XBoxHacksError.NA (_("Not Applicable")); } |