[rygel] core, data: Fix Samsung user agent for downgrade



commit 56c9854da5c71929023e4ff5857aca031f29ba77
Author: Jens Georg <mail jensge org>
Date:   Thu Jun 28 09:13:16 2012 +0200

    core, data: Fix Samsung user agent for downgrade
    
    - There was a typo: HHP vs HPP
    - [TV] is part of the changeable name
    - Apparently there are two versions: SEC HHP and SEC_HHP
    
    So this patch just unifies the two Samsung User-Agents and forces
    downgrades for every Samsung device.

 data/rygel.conf               |    2 +-
 src/rygel/rygel-v1-hacks.vala |    5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/data/rygel.conf b/data/rygel.conf
index 00ad1ec..f7d5f1b 100644
--- a/data/rygel.conf
+++ b/data/rygel.conf
@@ -75,7 +75,7 @@ allow-deletion=true
 #              working with Rygel, please file a bug at
 #              https://bugzilla.gnome.org/enter_bug.cgi?product=Rygel&component=IOP
 #              so we can include it in future releases.
-#force-downgrade-for=Allegro-Software-WebClient;SEC_HHP_Galaxy S/1.0;Mediabolic-IMHTTP/1;SEC_HPP[TV]
+#force-downgrade-for=Allegro-Software-WebClient;SEC_HHP;SEC HHP;Mediabolic-IMHTTP/1
 
 # Plugin specific sections
 #
diff --git a/src/rygel/rygel-v1-hacks.vala b/src/rygel/rygel-v1-hacks.vala
index 9568dfb..3e1a6bc 100644
--- a/src/rygel/rygel-v1-hacks.vala
+++ b/src/rygel/rygel-v1-hacks.vala
@@ -30,9 +30,8 @@ using GUPnP;
  */
 internal class Rygel.V1Hacks : ClientHacks {
     private const string DEFAULT_AGENT = ".*Allegro-Software-WebClient.*|" +
-                                         ".*SEC_HHP_Galaxy S/1\\.0.*|" +
-                                         ".*Mediabolic-IMHTTP/1.*|" +
-                                         ".*SEC_HPP\\[TV\\].*";
+                                         ".*SEC[_ ]HHP.*|" +
+                                         ".*Mediabolic-IMHTTP/1.*";
     private const string DMS = "urn:schemas-upnp-org:device:MediaServer";
     private const string DMS_V1 = DMS + ":1";
     private const string MATCHING_PATTERN = ".*%s.*";



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