[rygel] core: Apply XBox hacks to Samsung Galaxy S.



commit 9d9ac14de7069d591b6cc223ccb968e17893c91a
Author: Jens Georg <mail jensge org>
Date:   Wed Jul 27 13:54:29 2011 +0300

    core: Apply XBox hacks to Samsung Galaxy S.
    
    Fixes bgo#629582

 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 d63d1a4..9407321 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 = ":";
@@ -54,7 +55,8 @@ internal class Rygel.XBoxHacks : GLib.Object {
         var agent = headers.get_one ("User-Agent");
         if (agent == null ||
             !(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"));
         }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]